• Martin Storsjö's avatar
    movenc: Write durations based on pts into mvhd/mdhd/tkhd/elst · 3d894db7
    Martin Storsjö authored
    Keep all the existing data fields as they are (there's lots and
    lots of nontrivial calculation and heuristics based on them in
    their current form), but derive the duration as the difference
    between the pts of the first packet to the maximum pts+duration
    (not necessarily the last packet); use this duration in any box
    where the actual presentation duration is supposed to be.
    
    Fixes: 8420
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    3d894db7
movenc.c 260 KB