summaryrefslogtreecommitdiff
path: root/libavcodec/wavpack.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-30 11:05:58 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-31 12:45:41 +0200
commit6d037537c1a91b1803f6fe0cb772f9708895209d (patch)
tree0cefe51d5fb891a5fc9396a6152e2b27959cc8b5 /libavcodec/wavpack.c
parent38ef9cf39e41d21e57f51bd1f2f30d98158d18bc (diff)
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>
Diffstat (limited to 'libavcodec/wavpack.c')
-rw-r--r--libavcodec/wavpack.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index efd9e0fdd0..8bfbb654e8 100644
--- a/libavcodec/wavpack.c
+++ b/libavcodec/wavpack.c
@@ -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;