Does ffmpeg allow negative cts_offset in mp4 trun box?
30 Sep
2016
30 Sep
'16
10:08 p.m.
Per spec, if cts_offset is signed, the box version needs to be set to 1. Yet I see no corresponding condition around this in libavformat/movenc.c; version is hardcoded to 0 and the *signed int32* typed value is written out. This can cause issues in players if they follow the spec and expect a version 0 box to contain unsigned int32 cts_offset values. If ffmpeg had a negative value, a conformant player will interpret that value as a huge positive value (due to version 0 logic). Does ffmpeg somehow guarantee that trun cts_offsets are always positive? If not, this looks like a bug in ffmpeg mp4 muxing.
3695
Age (days ago)
3695
Last active (days ago)
0 comments
1 participants
participants (1)
-
Matt Wolenetz