FFmpeg: Support negative cts offsets for reordering codecs


Reordering codecs can start with packets with negative dts. This was
handled by clamping the dts to pts or 0, but this would break dts
monotonicity and packets would be rejected by muxer.

Add check and setting of negative_cts_offsets muxer option to allow
muxer to handle these timestamps without us clamping them. This only
affects MOV/MP4 muxers.

Amends commit ec433a64c953b433f6b61d272382e7a12c5cd7e5

Pick-to: 6.12
Task-number: QTBUG-147731
Change-Id: I67f748b160d25516c82748625f858af319ec3be2
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
commit9b84ef64f6562a4d8117e0a667d0393f44974c5b
parent84291b46527b4b81d27c6add43591fb7cfc28c6e
authorMikko Hallamaa <mikko.hallamaa@qt.io>
committerMikko Hallamaa <mikko.hallamaa@qt.io>
commit timeTue, 8 Sep 2026 12:25:38 +0000