• Gyan Doshi's avatar
    avformat/mov: add option max_stts_delta · 9cfc7a24
    Gyan Doshi authored
    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: 's avatarGyan Doshi <ffmpeg@gyani.pro>
    Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    9cfc7a24
isom.h 12.4 KB