Closed Bug 1340447 Opened 8 years ago Closed 7 years ago

Sample count doesn't match when comparing to stagefright.

Categories

(Core :: Audio/Video: Playback, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ayang, Assigned: ayang)

References

Details

When running mochitest with rust MP4 preference on, sample count in dom/media/test/gizmo-short.mp4 is different comparing to stagefright.

Total sample count is 12 but only 11 samples in 'stsc' table; the last sample should be in the final chunk.

<SampleToChunkBox EntryCount="6">
<BoxInfo Size="88" Type="stsc"/>
<FullBoxInfo Version="0" Flags="0x0"/>
<SampleToChunkEntry FirstChunk="1" SamplesPerChunk="2" SampleDescriptionIndex="1"/>
<SampleToChunkEntry FirstChunk="3" SamplesPerChunk="1" SampleDescriptionIndex="1"/>
<SampleToChunkEntry FirstChunk="4" SamplesPerChunk="2" SampleDescriptionIndex="1"/>
<SampleToChunkEntry FirstChunk="5" SamplesPerChunk="1" SampleDescriptionIndex="1"/>
<SampleToChunkEntry FirstChunk="6" SamplesPerChunk="2" SampleDescriptionIndex="1"/>
<SampleToChunkEntry FirstChunk="7" SamplesPerChunk="1" SampleDescriptionIndex="1"/>
Assignee: nobody → ayang
Blocks: 1161350
Depends on: 1331330
Patch is ready, PR can be sent after https://github.com/mozilla/mp4parse-rust/pull/64 is merged.
Blocks: 1341221
Merged to gecko in bug 1331330.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.