qtdemux: Fix bug where stps is never parsed due to logic error
authorRobert Swain <robert.swain@collabora.co.uk>
Mon, 26 Oct 2009 20:36:08 +0000 (20:36 +0000)
committerRobert Swain <robert.swain@collabora.co.uk>
Mon, 23 Nov 2009 15:29:14 +0000 (16:29 +0100)
gst/qtdemux/qtdemux.c

index 5aec5ce734b985e33fb24f7fce747e469539ef8c..30d8365691e01064e81ec04d596f1f3d8995d472 100644 (file)
@@ -3964,10 +3964,9 @@ qtdemux_parse_samples (GstQTDemux * qtdemux, QtDemuxStream * stream,
           if (!gst_byte_reader_get_uint32_be (&stps, &n_sample_syncs))
             goto corrupt_file;
 
+          /* if there are no entries, the stss table contains the real
+           * sync samples */
           if (n_sample_syncs != 0) {
-            /* no entries, the stss table contains the real sync
-             * samples */
-          } else {
             /* make sure there's enough data */
             if (!qt_atom_parser_has_chunks (&stps, n_sample_syncs, 4))
               goto corrupt_file;