UtkarshShrivastava / mp4parser

Automatically exported from code.google.com/p/mp4parser
0 stars 0 forks source link

Must handle "infinite" durations #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Harmonic live DASH packagers generate (mvhd), tkhd, and mdhd duration values 
of 0xffffffffffffffff (64 bit ones). This is according to the standard 14496-12 
that says that one should send only 1's if the duration cannot be determined. 
The mp4parser throws an Exception so that the parsing cannot continue. (The 
mvhd is actually 0, which is a bug)
2.
3.

What is the expected output? What do you see instead?
I actually don't care about the value of the duration, but setting to a 63bits 
of 1 (max positive integer) should probably be the best for the duration field. 
If you want to avoid using BigInt, maybe the 64'th bit could be provided with a 
separat method like isBit64Set()

What version of the product are you using? isoviewer 1.0RC28 On what operating 
system? Android 4.x

Please provide any additional information below.

Original issue reported on code.google.com by mobito...@gmail.com on 12 May 2014 at 8:30

Attachments:

GoogleCodeExporter commented 9 years ago
Could you perhaps provide a patch? I'm happy to apply it

Original comment by Sebastian.Annies on 19 Jun 2014 at 3:38

GoogleCodeExporter commented 9 years ago
I fixed it in the latest build 1.0.3.3 
It is in a staging repository 
https://oss.sonatype.org/content/repositories/comgooglecodemp4parser-1026

Original comment by Sebastian.Annies on 6 Aug 2014 at 2:05