summaryrefslogtreecommitdiff
path: root/libavcodec/vorbisdec.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2013-03-12 20:33:13 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-12 20:46:55 +0100
commitcde1e7db3e67a8f7ed6e3389fae349ceb91e866d (patch)
tree350ed714b1d4c37498921bb1adb66f98e706b0e1 /libavcodec/vorbisdec.c
parent713ac21097555722257343494f83999068006653 (diff)
vorbis: unref the skipped first frame.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vorbisdec.c')
-rw-r--r--libavcodec/vorbisdec.c1
1 files changed, 1 insertions, 0 deletions
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;
}