• Derek Buitenhuis's avatar
    mov: Properly abide by the track's media duration · 28503c5a
    Derek Buitenhuis authored
    The track's media duration from the mdhd atom takes precedence
    over both the stts and elst atom for calculating and setting
    the track's total duraion.
    
    Technically, we shouldn't be using the stts atom at all for
    calculating stream durations.
    
    This fixes incorrect stream and final packet durations on files
    with edit lists that are longer than the media duration.
    
    The FATE changes are expected, and output is more correct (the
    AAC frame is not 1028 samples).
    Signed-off-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
    28503c5a
mov.c 266 KB