[FFmpeg-cvslog] vorbis: unref the skipped first frame.

Hendrik Leppkes git at videolan.org
Tue Mar 12 20:57:01 CET 2013


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Tue Mar 12 20:33:13 2013 +0100| [cde1e7db3e67a8f7ed6e3389fae349ceb91e866d] | committer: Michael Niedermayer

vorbis: unref the skipped first frame.

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

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

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

diff --git a/libavcodec/vorbisdec.c b/libavcodec/vorbisdec.c
index 581b7bc..a7c0da5 100644
--- a/libavcodec/vorbisdec.c
+++ b/libavcodec/vorbisdec.c
@@ -1752,6 +1752,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