[FFmpeg-cvslog] svq1: use av_frame_free to free refcounted frame

Janne Grunau git at videolan.org
Wed Mar 13 02:02:01 CET 2013


ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Sun Mar 10 21:30:54 2013 +0100| [e3232f34312f8187094c875445683277ed0c209d] | committer: Janne Grunau

svq1: use av_frame_free to free refcounted frame

Fixes a memleak due to avcodec_free_frame not freeing the frame data.

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

 libavcodec/svq1dec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c
index c5d56ee..d9e6f7e 100644
--- a/libavcodec/svq1dec.c
+++ b/libavcodec/svq1dec.c
@@ -793,7 +793,7 @@ static av_cold int svq1_decode_end(AVCodecContext *avctx)
 {
     SVQ1Context *s = avctx->priv_data;
 
-    avcodec_free_frame(&s->prev);
+    av_frame_free(&s->prev);
 
     return 0;
 }



More information about the ffmpeg-cvslog mailing list