Commit bd50c9af authored by Tristan Matthews's avatar Tristan Matthews

heif: avoid crashing on AVIF files

Samples here: http://download.opencontent.netflix.com/?prefix=AV1/Chimera/AVIF/
parent 004467b3
......@@ -344,7 +344,7 @@ static int SetPictureProperties( demux_t *p_demux, uint32_t i_item_id,
case ATOM_hvcC:
case ATOM_avcC:
case ATOM_av1C:
if( !fmt->p_extra &&
if( !fmt->p_extra && p_prop->data.p_binary &&
((fmt->i_codec == VLC_CODEC_HEVC && p_prop->i_type == ATOM_hvcC) ||
(fmt->i_codec == VLC_CODEC_H264 && p_prop->i_type == ATOM_avcC) ||
(fmt->i_codec == VLC_CODEC_AV1 && p_prop->i_type == ATOM_av1C)) )
......
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