You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
decode: avoid leaks on failure in ff_get_buffer()
If the get_buffer() call fails, the frame might have some side data already set. Make sure it gets freed. CC: libav-stable@libav.org
This commit is contained in:
@@ -1069,6 +1069,9 @@ end:
|
||||
frame->height = avctx->height;
|
||||
}
|
||||
|
||||
if (ret < 0)
|
||||
av_frame_unref(frame);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user