You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
vorbisdec: do not leak the first frame.
This commit is contained in:
@@ -1707,6 +1707,7 @@ static int vorbis_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
if (!vc->first_frame) {
|
if (!vc->first_frame) {
|
||||||
vc->first_frame = 1;
|
vc->first_frame = 1;
|
||||||
*got_frame_ptr = 0;
|
*got_frame_ptr = 0;
|
||||||
|
av_frame_unref(frame);
|
||||||
return buf_size;
|
return buf_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user