]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/alacenc: Remove redundant code to free extradata
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 13 Sep 2020 18:16:30 +0000 (20:16 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 18 Sep 2020 00:48:59 +0000 (02:48 +0200)
It is already freed generically for encoders.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/alacenc.c

index 804cc7b17b752a34553d0df11a641cbb3a1dd985..fc5fa270e6b0a02fbfba2c08e22d5dea59eb17ca 100644 (file)
@@ -498,8 +498,6 @@ static av_cold int alac_encode_close(AVCodecContext *avctx)
 {
     AlacEncodeContext *s = avctx->priv_data;
     ff_lpc_end(&s->lpc_ctx);
-    av_freep(&avctx->extradata);
-    avctx->extradata_size = 0;
     return 0;
 }