Commit 6ab01528 authored by Thomas Guillem's avatar Thomas Guillem

codec: videotoolbox: error if SetH264DecoderInfo fails

parent 99a48af3
......@@ -884,7 +884,8 @@ static int SetupDecoderExtradata(decoder_t *p_dec)
p_sys->extradataInfo = ExtradataInfoCreate(CFSTR("avcC"),
p_dec->fmt_in.p_extra,
p_dec->fmt_in.i_extra);
SetH264DecoderInfo(p_dec, p_sys->extradataInfo);
if (SetH264DecoderInfo(p_dec, p_sys->extradataInfo) != VLC_SUCCESS)
return VLC_EGENERIC;
}
else
{
......
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