MP4 video can't be played (file is corrupt)

RESOLVED FIXED in mozilla34

Status

()

defect
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: jya, Assigned: jya, Mentored)

Tracking

Trunk
mozilla34
x86
macOS
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

Assignee

Description

5 years ago
Various mp4 failed to play.
Firefox giving:
the video can't be played because the file is corrupt.

Analysis of the mp4 file shows that the issue occurs when the mdat track is found before the moof one.

Example:
http://people.mozilla.org/~jyavenard/mediatest/BreakVDA.mp4

The file mentioned in bug #906422 also exhibit the same problem when using libstagefright

Same with some of the files mentioned in Bug #987894
Assignee

Updated

5 years ago
See Also: → 906422, 987894
Assignee

Comment 1

5 years ago
Bug 1046549 - Fix playback of some MP4 files
Attachment #8465222 - Flags: review?(ajones)
Assignee

Updated

5 years ago
Assignee: nobody → jyavenard
Status: NEW → ASSIGNED
Assignee

Comment 2

5 years ago
Note: I believe we could completely remove the handling of mdat.
Comment on attachment 8465222 [details] [diff] [review]
ignore mdat unless we've already found a media track

Review of attachment 8465222 [details] [diff] [review]:
-----------------------------------------------------------------

The patch description is wrong. We used to stop parsing when we reach the 'mdat' but now we only stop parsing at the 'mdat' if we've already processed the 'moov'.
Attachment #8465222 - Flags: review?(ajones) → review+
Assignee

Updated

5 years ago
Attachment #8465222 - Attachment is obsolete: true
https://hg.mozilla.org/mozilla-central/rev/1a00eb18ea06
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in before you can comment on or make changes to this bug.