qtdemux: Fix compiler warning
authorSebastian Dröge <sebastian@centricular.com>
Tue, 1 Nov 2016 19:00:15 +0000 (21:00 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 1 Nov 2016 19:00:15 +0000 (21:00 +0200)
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;
                   ^~~~~~~~~~~~~~

gst/isomp4/qtdemux.c

index c4668a1..a1588a5 100644 (file)
@@ -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");