Commit e2c29741 authored by Anton Khirnov's avatar Anton Khirnov

vorbisdec: do not leak the first frame.

parent 5d639b2b
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment