Closed Bug 1044713 Opened 10 years ago Closed 10 years ago

Parse MP4 Header until we reach 'mdat' atom

Categories

(Core :: Audio/Video, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: ajones, Assigned: ajones)

References

Details

Attachments

(1 file)

The existing MP4 parser metadata parsing is too sensitive to the order and presence of top level atoms. Change it so that it continues parsing until we hit the 'mdat' atom.
Comment on attachment 8463184 [details] [diff] [review]
Modify MP4 metadata parser to make it less sensitive to atom ordering

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

::: media/libstagefright/frameworks/av/media/libstagefright/MPEG4Extractor.cpp
@@ +493,3 @@
>          }
> +        char chunk[5];
> +        MakeFourCCString(chunk_type, chunk);

|chunk| is unused.
Attachment #8463184 - Flags: review?(edwin) → review+
https://hg.mozilla.org/mozilla-central/rev/0d34f40594ca
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: