Commit b91b28c1 authored by Thomas Guillem's avatar Thomas Guillem

codec: videotoolbox: check imageBuffer from callback

This should not happen, this will still assert in debug mode.
parent cf376a52
......@@ -1599,6 +1599,12 @@ static void DecoderCallback(void *decompressionOutputRefCon,
goto end;
if (unlikely(!imageBuffer))
msg_Err(p_dec, "critical: null imageBuffer with a valid status");
p_dec->p_sys->b_abort = true;
goto end;
if (p_dec->p_sys->b_abort)
goto end;
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