matroskademux: Guard against no codec data in prores caps creation

CID 1346532
This commit is contained in:
Sebastian Dröge 2015-12-29 18:05:56 +02:00
parent bed1f0a0a6
commit e618444ca7

View file

@ -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;
}