mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:16:13 +00:00
matroskademux: Guard against no codec data in prores caps creation
CID 1346532
This commit is contained in:
parent
bed1f0a0a6
commit
e618444ca7
1 changed files with 2 additions and 2 deletions
|
@ -5260,8 +5260,8 @@ gst_matroska_demux_video_caps (GstMatroskaTrackVideoContext *
|
||||||
const gchar *variant, *variant_descr = "";
|
const gchar *variant, *variant_descr = "";
|
||||||
|
|
||||||
/* Expect a fourcc in the codec private data */
|
/* Expect a fourcc in the codec private data */
|
||||||
if (size < 4) {
|
if (!data || size < 4) {
|
||||||
GST_WARNING ("Too small PRORESS fourcc (%d bytes)", size);
|
GST_WARNING ("No or too small PRORESS fourcc (%d bytes)", size);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue