[FFmpeg-cvslog] vorbisdec: do not leak the first frame.

Anton Khirnov git at videolan.org
Wed Mar 13 01:55:10 CET 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat Mar  9 18:38:27 2013 +0100| [e2c297412066e25358741a234a1d936cb55cf139] | committer: Anton Khirnov

vorbisdec: do not leak the first frame.

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

 libavcodec/vorbisdec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/vorbisdec.c b/libavcodec/vorbisdec.c
index ebe7aa7..be2e38d 100644
--- a/libavcodec/vorbisdec.c
+++ b/libavcodec/vorbisdec.c
@@ -1707,6 +1707,7 @@ static int vorbis_decode_frame(AVCodecContext *avctx, void *data,
     if (!vc->first_frame) {
         vc->first_frame = 1;
         *got_frame_ptr = 0;
+        av_frame_unref(frame);
         return buf_size;
     }
 



More information about the ffmpeg-cvslog mailing list