diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index 6c6933b98a..f5d2a5b2e3 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -5260,8 +5260,8 @@ gst_matroska_demux_video_caps (GstMatroskaTrackVideoContext * const gchar *variant, *variant_descr = ""; /* Expect a fourcc in the codec private data */ - if (size < 4) { - GST_WARNING ("Too small PRORESS fourcc (%d bytes)", size); + if (!data || size < 4) { + GST_WARNING ("No or too small PRORESS fourcc (%d bytes)", size); return NULL; }