From cde1e7db3e67a8f7ed6e3389fae349ceb91e866d Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Tue, 12 Mar 2013 20:33:13 +0100 Subject: [PATCH] vorbis: unref the skipped first frame. Signed-off-by: Michael Niedermayer --- libavcodec/vorbisdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/vorbisdec.c b/libavcodec/vorbisdec.c index 581b7bc869..a7c0da5557 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; }