From e618444ca7bca66cf9e018844cc46fd6d58bf7a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 29 Dec 2015 18:05:56 +0200 Subject: [PATCH] matroskademux: Guard against no codec data in prores caps creation CID 1346532 --- gst/matroska/matroska-demux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }