summaryrefslogtreecommitdiff
path: root/libavcodec/vorbisdec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-03-09 18:38:27 +0100
committerAnton Khirnov <anton@khirnov.net>2013-03-10 22:16:26 +0100
commite2c297412066e25358741a234a1d936cb55cf139 (patch)
tree8156c618885135ef77797926edae71f4000f0198 /libavcodec/vorbisdec.c
parent5d639b2b4a6d1f5710cfe247dea4d4c6debdfe0d (diff)
vorbisdec: do not leak the first frame.
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 ebe7aa79dc..be2e38dfd5 100644
--- a/libavcodec/vorbisdec.c
+++ b/libavcodec/vorbisdec.c
@@ -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;
}