]> git.sesse.net Git - ffmpeg/commitdiff
vorbisdec: do not leak the first frame.
authorAnton Khirnov <anton@khirnov.net>
Sat, 9 Mar 2013 17:38:27 +0000 (18:38 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sun, 10 Mar 2013 21:16:26 +0000 (22:16 +0100)
libavcodec/vorbisdec.c

index ebe7aa79dc9870676ed193fdc83afc6c1254c602..be2e38dfd5e2dbcb663c003149edd495831d38f3 100644 (file)
@@ -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;
     }