movenc: Write track durations with all bits set if duration is unknown
authorMartin Storsjö <martin@martin.st>
Fri, 27 Jan 2012 22:28:19 +0000 (00:28 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 17 Feb 2012 22:03:30 +0000 (00:03 +0200)
commit99a357f4c5091293bc42cb4bbd7bcae6a2624584
tree0f71876aef540f949c99e30ae7faf2a91d5e40a2
parentaf468015d972c0dec5c8c37b2685ffa5cbe4ae87
movenc: Write track durations with all bits set if duration is unknown

According to 14496-12, the duration should be all 1s if
the duration is unknown. This is the case if writing a moov
atom without any samples described in it (e.g. as in ismv files).

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/movenc.c