mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
qtdemux: Fix bug where stps is never parsed due to logic error
This commit is contained in:
parent
a1e2047472
commit
ab61fb22f6
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue