mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-28 10:13:22 +00:00
vorbisdec: do not leak the first frame.
This commit is contained in:
parent
5d639b2b4a
commit
e2c2974120
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user