summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Swain <robert.swain@collabora.co.uk>2009-10-26 20:36:08 +0000
committerRobert Swain <robert.swain@collabora.co.uk>2009-11-20 15:11:58 +0100
commite62f1879f448852ff070770d1576febe29d1e6cb (patch)
tree1a79ec9a0f34b908186ba9e3ed6af6d403b3afdc
parent0c920712faf5bd3b53c5cfcd2e50f5f4feacd42e (diff)
qtdemux: Fix bug where stps is never parsed due to logic error
-rw-r--r--gst/qtdemux/qtdemux.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c
index 0c9082da..26ae3835 100644
--- a/gst/qtdemux/qtdemux.c
+++ b/gst/qtdemux/qtdemux.c
@@ -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;