Commit 31c9df25 authored by Steve Lhomme's avatar Steve Lhomme

rawvid: fix unlikely NULL dereference

CID #1467998
parent 2cbb6f31
......@@ -351,6 +351,8 @@ valid:
}
const vlc_chroma_description_t *dsc =
vlc_fourcc_GetChromaDescription(p_sys->fmt_video.video.i_chroma);
if (unlikely(dsc == NULL))
goto error;
p_sys->frame_size = 0;
for (unsigned i=0; i<dsc->plane_count; 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