An encoder's extradata is always freed generically.

Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@gmail.com>
---
 libavcodec/flacenc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c
index e03af4bc87..0e707b9421 100644
--- a/libavcodec/flacenc.c
+++ b/libavcodec/flacenc.c
@@ -1454,8 +1454,6 @@ static av_cold int flac_encode_close(AVCodecContext 
*avctx)
     av_freep(&s->md5ctx);
     av_freep(&s->md5_buffer);
     ff_lpc_end(&s->lpc_ctx);
-    av_freep(&avctx->extradata);
-    avctx->extradata_size = 0;
     return 0;
 }
 
-- 
2.25.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to