vorbis: unref the skipped first frame.
authorHendrik Leppkes <h.leppkes@gmail.com>
Tue, 12 Mar 2013 19:33:13 +0000 (20:33 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 12 Mar 2013 19:46:55 +0000 (20:46 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vorbisdec.c

index 581b7bc..a7c0da5 100644 (file)
@@ -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;
     }