diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-03-09 21:38:27 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-03-11 01:16:26 +0400 |
commit | e2c297412066e25358741a234a1d936cb55cf139 (patch) | |
tree | 8156c618885135ef77797926edae71f4000f0198 /libavcodec | |
parent | 5d639b2b4a6d1f5710cfe247dea4d4c6debdfe0d (diff) |
vorbisdec: do not leak the first frame.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vorbisdec.c | 1 |
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; } |