avcodec/wavpack: Remove redundant av_channel_layout_uninit()

av_channel_layout_copy() will uninit the dst channel layout
before copying the new one.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2022-05-30 11:05:58 +02:00
parent 38ef9cf39e
commit 6d037537c1
1 changed files with 0 additions and 1 deletions

View File

@ -1541,7 +1541,6 @@ static int wavpack_decode_block(AVCodecContext *avctx, int block_no,
}
ff_thread_release_ext_buffer(avctx, &wc->curr_frame);
}
av_channel_layout_uninit(&avctx->ch_layout);
av_channel_layout_copy(&avctx->ch_layout, &new_ch_layout);
avctx->sample_rate = new_samplerate;
avctx->sample_fmt = sample_fmt;