Skip to content
Snippets Groups Projects
Commit 00c67fe1 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

movenc: Write a 0 duration in mdhd and tkhd for an empty initial moov


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: default avatarMartin Storsjö <martin@martin.st>
parent cf589faa
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment