From 16f3fd67828008ad2bbde359c5998797589acc37 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 10 Mar 2017 11:24:14 +0100 Subject: [PATCH] qtmux: init fourcc Initialize the fourcc to 0 so that we can detect failure later. --- gst/isomp4/gstqtmux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index 8df0394..8d009b6 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c @@ -4344,12 +4344,12 @@ gst_qt_mux_video_sink_set_caps (GstQTPad * qtpad, GstCaps * caps) } else if (strcmp (mimetype, "video/x-dirac") == 0) { entry.fourcc = FOURCC_drac; } else if (strcmp (mimetype, "video/x-qt-part") == 0) { - guint32 fourcc; + guint32 fourcc = 0; gst_structure_get_uint (structure, "format", &fourcc); entry.fourcc = fourcc; } else if (strcmp (mimetype, "video/x-mp4-part") == 0) { - guint32 fourcc; + guint32 fourcc = 0; gst_structure_get_uint (structure, "format", &fourcc); entry.fourcc = fourcc; -- 2.7.4