Commit e618444c authored by Sebastian Dröge's avatar Sebastian Dröge

matroskademux: Guard against no codec data in prores caps creation

CID 1346532
parent bed1f0a0
......@@ -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;
}
......
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