summaryrefslogtreecommitdiff
path: root/doc/demuxers.texi
diff options
context:
space:
mode:
authorGyan Doshi <ffmpeg@gyani.pro>2021-11-27 15:21:12 +0530
committerGyan Doshi <ffmpeg@gyani.pro>2021-12-31 14:44:20 +0530
commit9cfc7a244052dced520776ff0ecc6f0a9390f62b (patch)
treee09cc9d3167105be99a9515efa2f64857cd2b02d /doc/demuxers.texi
parent6b7e4de0dbc78a630bfea27e917798b4d5b61abf (diff)
downloadffmpeg-9cfc7a244052dced520776ff0ecc6f0a9390f62b.tar.gz
avformat/mov: add option max_stts_delta
Very high stts sample deltas may occasionally be intended but usually they are written in error or used to store a negative value for dts correction when treated as signed 32-bit integers. This option lets the user set an upper limit, beyond which the delta is clamped to 1. Values greater than the limit if negative when cast to int32 are used to adjust onward dts. Unit is the track time scale. Default is UINT_MAX - 48000*10 which allows upto a 10 second dts correction for 48 kHz audio streams while accommodating 99.9% of uint32 range. Signed-off-by: Gyan Doshi <ffmpeg@gyani.pro> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'doc/demuxers.texi')
-rw-r--r--doc/demuxers.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/demuxers.texi b/doc/demuxers.texi
index b474a24278..26ae768d7a 100644
--- a/doc/demuxers.texi
+++ b/doc/demuxers.texi
@@ -726,6 +726,15 @@ specify.
@item decryption_key
16-byte key, in hex, to decrypt files encrypted using ISO Common Encryption (CENC/AES-128 CTR; ISO/IEC 23001-7).
+
+@item max_stts_delta
+Very high sample deltas written in a trak's stts box may occasionally be intended but usually they are written in
+error or used to store a negative value for dts correction when treated as signed 32-bit integers. This option lets
+the user set an upper limit, beyond which the delta is clamped to 1. Values greater than the limit if negative when
+cast to int32 are used to adjust onward dts.
+
+Unit is the track time scale. Range is 0 to UINT_MAX. Default is @code{UINT_MAX - 48000*10} which allows upto
+a 10 second dts correction for 48 kHz audio streams while accommodating 99.9% of @code{uint32} range.
@end table
@subsection Audible AAX