• Martin Storsjö's avatar
    movenc: Write a 0 duration in mdhd and tkhd for an empty initial moov · 00c67fe1
    Martin Storsjö authored
    ISO/IEC 14496-12:2012/Cor 1:2013 is explicit about how this should be
    handled. All zeros doesn't mean that the full file has got a zero
    duration, only that the track samples described within the initial moov
    have got zero duration. An all ones duration means an indeterminate
    duration.
    
    Keep writing a duration consisting of all ones for the ISM mode -
    older windows media player versions won't play a file if this is
    zero. (Newer windows media player versions play either version fine.)
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    00c67fe1
movenc.c 137 KB