Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-03-09 21:38:27 +0400
committerAnton Khirnov <anton@khirnov.net>2013-03-11 01:16:26 +0400
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;
}