Skip to content

mp4mux: Store samples of the same track in the same trun

It is not wrong to have one trun per sample. However this behaviour is very inefficient. The patch changes as well the content of the first_sample_flags field from 0x40 to 0x80. Without this change the keyframe, is wrongly marked as "not an I picture" according to SS-ISO/IEC 14496-12:2022 (chapter 8.6.4.1). Alternatively, sample_depends_on could be set to 0 (<=> unknown).

Merge request reports