mxf: Improve index entry debug log

By printing out the various known flag values

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2371>
This commit is contained in:
Edward Hervey 2021-06-24 09:53:08 +02:00 committed by Edward Hervey
parent 11d9abd2d5
commit a68198c405

View file

@ -1246,7 +1246,11 @@ mxf_index_table_segment_parse (const MXFUL * ul,
entry->flags = GST_READ_UINT8 (tag_data);
tag_data += 1;
tag_size -= 1;
GST_DEBUG (" flags = 0x%02x", entry->flags);
GST_DEBUG (" flags = 0x%02x (%s%s%s%s)", entry->flags,
entry->flags & 0x80 ? "Random-Access " : "",
entry->flags & 0x40 ? "Sequence-Header " : "",
entry->flags & 0x20 ? "Forward-Prediction " : "",
entry->flags & 0x10 ? "Backward-Prediction " : "");
entry->stream_offset = GST_READ_UINT64_BE (tag_data);
tag_data += 8;