diff mbox series

[FFmpeg-devel,2/5] avcodec/wavpack: Remove redundant av_channel_layout_uninit()

Message ID DB6PR0101MB2214CA079E0DC5DD690FEFF48FDD9@DB6PR0101MB2214.eurprd01.prod.exchangelabs.com
State Accepted
Commit 6d037537c1a91b1803f6fe0cb772f9708895209d
Headers show
Series None | expand

Commit Message

Andreas Rheinhardt May 30, 2022, 2:03 p.m. UTC
av_channel_layout_copy() will uninit the dst channel layout
before copying the new one.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/wavpack.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

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;