diff options
author | Robert Swain <robert.swain@collabora.co.uk> | 2009-10-26 20:36:08 +0000 |
---|---|---|
committer | Robert Swain <robert.swain@collabora.co.uk> | 2009-11-23 16:29:14 +0100 |
commit | ab61fb22f6fb2ddf491e3e1637abb8c101640314 (patch) | |
tree | e00e42b58b4644a444aa055551653ef6f2eb7fbd | |
parent | a1e2047472f983632cff48ff955c44e508185f89 (diff) |
qtdemux: Fix bug where stps is never parsed due to logic error
-rw-r--r-- | gst/qtdemux/qtdemux.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index 5aec5ce73..30d836569 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; |