mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
qtdemux: stbl_index is valid from 0 onwards
It indicates the last sample parsed, not the next one to parse. As it starts in -1, any value from 0 onwards means that it has some valid data.
This commit is contained in:
parent
2fde2011b2
commit
aeb4d32363
1 changed files with 1 additions and 1 deletions
|
@ -9470,7 +9470,7 @@ qtdemux_prepare_streams (GstQTDemux * qtdemux)
|
|||
break;
|
||||
++sample_num;
|
||||
}
|
||||
if (stream->n_samples > 0 && stream->stbl_index > 0) {
|
||||
if (stream->n_samples > 0 && stream->stbl_index >= 0) {
|
||||
stream->first_duration = stream->samples[0].duration;
|
||||
GST_LOG_OBJECT (qtdemux, "stream %d first duration %u",
|
||||
stream->track_id, stream->first_duration);
|
||||
|
|
Loading…
Reference in a new issue