Commit feb6a94f authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/frame: fix crash with av_frame_unref(NULL)

Fixes: af94b3a3d26586c08f557cafe8246251_signal_sigsegv_7ffff713351a_343_XFMode.ASF with 2097152 alloc limit

Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: 's avatarMichael Niedermayer <>
parent cc038022
......@@ -463,6 +463,9 @@ void av_frame_unref(AVFrame *frame)
int i;
if (!frame)
for (i = 0; i < FF_ARRAY_ELEMS(frame->buf); i++)
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