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
@ -836,6 +836,11 @@ qtdemux_dump_trun (GstQTDemux * qtdemux, GstByteReader * data, int depth)
|
||||
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++) {
|
||||
if (flags & TR_SAMPLE_DURATION) {
|
||||
if (!gst_byte_reader_get_uint32_be (data, &sample_duration))
|
||||
|
Loading…
x
Reference in New Issue
Block a user