Commit 6d888d8c authored by Felix Paul Kühne's avatar Felix Paul Kühne

videotoolbox: reject non-video ES

parent 6ca2e8ca
......@@ -632,6 +632,9 @@ static int OpenDecoder(vlc_object_t *p_this)
}
#endif
if (p_dec->fmt_in.i_cat != VIDEO_ES)
return VLC_EGENERIC;
/* check quickly if we can digest the offered data */
CMVideoCodecType codec;
codec = CodecPrecheck(p_dec);
......
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