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 ebe7aa7..be2e38d 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;
     }