]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libopusenc.c
avcodec: Remove redundant freeing of extradata of encoders
[ffmpeg] / libavcodec / libopusenc.c
index 8c99b26ddf85fab48dd523cb92f9e1cce391347b..c642037aac4019f72a11eb33654a937f902a50c0 100644 (file)
@@ -432,7 +432,6 @@ static av_cold int libopus_encode_init(AVCodecContext *avctx)
 
 fail:
     opus_multistream_encoder_destroy(enc);
-    av_freep(&avctx->extradata);
     return ret;
 }
 
@@ -538,7 +537,6 @@ static av_cold int libopus_encode_close(AVCodecContext *avctx)
     ff_af_queue_close(&opus->afq);
 
     av_freep(&opus->samples);
-    av_freep(&avctx->extradata);
 
     return 0;
 }