summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-11-01 21:00:15 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-11-01 21:00:15 +0200
commit68b0441a5e15d85045158a616a3bcc7cf11bf708 (patch)
treedfd0a1ac01e156db01d10c3eb5200c32ee50c440
parentc709abbb99eda04cc041d6493ce130d1249c815b (diff)
qtdemux: Fix compiler warning
qtdemux.c: In function ‘qtdemux_parse_tree’: qtdemux.c:10139:16: error: ‘color_table_id’ may be used uninitialized in this function [-Werror=maybe-uninitialized] if (color_table_id != 0) { ^ qtdemux.c:10121:19: note: ‘color_table_id’ was declared here guint16 color_table_id; ^~~~~~~~~~~~~~
-rw-r--r--gst/isomp4/qtdemux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c
index c4668a1c0..a1588a578 100644
--- a/gst/isomp4/qtdemux.c
+++ b/gst/isomp4/qtdemux.c
@@ -10118,7 +10118,7 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
const off_t min_size = compressor_offset + 32 + 2 + 2;
GNode *jpeg;
guint32 len;
- guint16 color_table_id;
+ guint16 color_table_id = 0;
gboolean ok;
GST_DEBUG_OBJECT (qtdemux, "found jpeg");