[FFmpeg-cvslog] avcodec/libopencore-amr: remove av_free coded_frame.

Michael Niedermayer git at videolan.org
Mon Dec 23 18:30:19 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Dec 23 17:38:39 2013 +0100| [d94633409bb19faf743359d923029f504f6c4ce1] | committer: Michael Niedermayer

avcodec/libopencore-amr: remove av_free coded_frame.

There seems to be nothing that sets coded_frame
also av_free is wrong

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d94633409bb19faf743359d923029f504f6c4ce1
---

 libavcodec/libopencore-amr.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c
index 75c467f..3a8787b 100644
--- a/libavcodec/libopencore-amr.c
+++ b/libavcodec/libopencore-amr.c
@@ -205,7 +205,6 @@ static av_cold int amr_nb_encode_init(AVCodecContext *avctx)
     s->enc_state = Encoder_Interface_init(s->enc_dtx);
     if (!s->enc_state) {
         av_log(avctx, AV_LOG_ERROR, "Encoder_Interface_init error\n");
-        av_freep(&avctx->coded_frame);
         return -1;
     }
 



More information about the ffmpeg-cvslog mailing list