mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
qtdemux: Don't iterate over all trun entries if none of the flags are set
Nothing would be printed anyway. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8059>
This commit is contained in:
parent
cbd659c58f
commit
0f4dae9b01
1 changed files with 5 additions and 0 deletions
|
@ -836,6 +836,11 @@ qtdemux_dump_trun (GstQTDemux * qtdemux, GstByteReader * data, int depth)
|
||||||
GST_LOG ("%*s first-sample-flags: %u", depth, "", first_sample_flags);
|
GST_LOG ("%*s first-sample-flags: %u", depth, "", first_sample_flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Nothing to print below */
|
||||||
|
if ((flags & (TR_SAMPLE_DURATION | TR_SAMPLE_SIZE | TR_SAMPLE_FLAGS |
|
||||||
|
TR_COMPOSITION_TIME_OFFSETS)) == 0)
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
for (i = 0; i < samples_count; i++) {
|
for (i = 0; i < samples_count; i++) {
|
||||||
if (flags & TR_SAMPLE_DURATION) {
|
if (flags & TR_SAMPLE_DURATION) {
|
||||||
if (!gst_byte_reader_get_uint32_be (data, &sample_duration))
|
if (!gst_byte_reader_get_uint32_be (data, &sample_duration))
|
||||||
|
|
Loading…
Reference in a new issue