qtdemux: Fix unitialized variables on macosx
authorEdward Hervey <edward.hervey@collabora.co.uk>
Thu, 6 Jan 2011 11:28:58 +0000 (12:28 +0100)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Thu, 6 Jan 2011 11:28:58 +0000 (12:28 +0100)
gst/qtdemux/qtdemux_dump.c

index d7fa62a..fa66767 100644 (file)
@@ -621,8 +621,9 @@ qtdemux_dump_tfhd (GstQTDemux * qtdemux, GstByteReader * data, int depth)
 gboolean
 qtdemux_dump_trun (GstQTDemux * qtdemux, GstByteReader * data, int depth)
 {
-  guint32 flags, samples_count, data_offset, first_sample_flags;
-  guint32 sample_duration, sample_size, sample_flags, composition_time_offsets;
+  guint32 flags = 0, samples_count = 0, data_offset = 0, first_sample_flags = 0;
+  guint32 sample_duration = 0, sample_size = 0, sample_flags =
+      0, composition_time_offsets = 0;
   int i = 0;
 
   if (!gst_byte_reader_skip (data, 1) ||