qtdemux: Fix uninitialized variable warning
authorJan Schmidt <thaytan@noraisin.net>
Tue, 13 Oct 2009 15:02:37 +0000 (16:02 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Tue, 13 Oct 2009 15:03:13 +0000 (16:03 +0100)
Fix another bogus may-be-used-uninitialized warning in qtdemux

gst/qtdemux/qtdemux.c

index 2ba04e6..966d43b 100644 (file)
@@ -3892,7 +3892,7 @@ qtdemux_parse_samples (GstQTDemux * qtdemux, QtDemuxStream * stream,
         }
         /* stps marks partial sync frames like open GOP I-Frames */
         if (qtdemux_tree_get_child_by_type_full (stbl, FOURCC_stps, &stps)) {
-          guint32 n_sample_syncs;
+          guint32 n_sample_syncs = 0;
 
           if (!qt_atom_parser_skip (&stps, 4))
             goto corrupt_file;