From: Hendrik Leppkes Date: Tue, 12 Mar 2013 19:33:13 +0000 (+0100) Subject: vorbis: unref the skipped first frame. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=cde1e7db3e67a8f7ed6e3389fae349ceb91e866d;p=ffmpeg vorbis: unref the skipped first frame. Signed-off-by: Michael Niedermayer --- diff --git a/libavcodec/vorbisdec.c b/libavcodec/vorbisdec.c index 581b7bc8690..a7c0da55579 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; }