Closed Bug 1339192 Opened 8 years ago Closed 8 years ago

Assert at mp4_demuxer::MP4Metadata::GetTrackInfo with null infoRust

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
firefox54 --- affected

People

(Reporter: kinetik, Assigned: kinetik)

References

Details

Attachments

(1 file)

With media.rust.test_mode enabled while streaming from my home Plex install, I hit the assert testing for infoRust. It looks like we completely fail to parse the M4A. Logging shows: FileTypeBox { major_brand: M4A , minor_version: 0, compatible_brands: [M4A , mp42, isom, ] } MovieHeaderBox { timescale: 44100, duration: 8032256 } TrackHeaderBox { track_id: 1, disabled: true, duration: 8032256, width: 0, height: 0 } MediaHeaderBox { timescale: 44100, duration: 8032256 } HandlerBox { handler_type: soun } bad parser state: 1 content bytes left Dropping 1 bytes in 'hdlr' Dropping 65859 bytes in 'mdia' Dropping 65894 bytes in 'trak' Dropping 117806 bytes in 'moov' [MediaPDecoder #1]: D/MP4Metadata rust parser returned 2 [MediaPDecoder #1]: W/MP4Metadata rust parser error 1 counting tracks [MediaPDecoder #1]: I/MP4Metadata audio tracks found: stagefright=1 rust=0 [MediaPDecoder #1]: W/MP4Metadata rust parser error 1 counting tracks [MediaPDecoder #1]: W/MP4Metadata rust parser error 1 counting tracks [MediaPDecoder #1]: W/MP4Metadata rust parser error 1 counting tracks [MediaPDecoder #1]: I/MP4Metadata audio tracks found: stagefright=1 rust=0 [MediaPDecoder #1]: W/MP4Metadata rust parser error 1 counting tracks [MediaPDecoder #1]: W/MP4Metadata rust parser error 1 counting tracks [MediaPDecoder #1]: W/MP4Metadata rust parser error 1 counting tracks [MediaPDecoder #1]: I/MP4Metadata audio tracks found: stagefright=1 rust=0 [MediaPDecoder #1]: W/MP4Metadata rust parser error 1 counting tracks [MediaPDecoder #1]: W/MP4Metadata rust parser error 1 counting tracks Assertion failure: infoRust, at /home/kinetik/mozilla/gecko/media/libstagefright/binding/MP4Metadata.cpp:285
Here's the ftyp/moov. The original source is copyright, but there's no music data included in this attachment, just the metadata.
It's choking on the "hdlr" atom: 00000120: 0000 0022 6864 6c72 0000 0000 0000 0000 ..."hdlr........ ^^^^ ^^^^ 34 bytes 00000130: 736f 756e 0000 0000 0000 0000 0000 0000 soun............ 00000140: 0000 .. ^^^^ 2 byte "name" field read_null_terminated_string is passed the src and a count of 2 bytes, but bails after reading the first null byte, leaving 1 byte remaining to be read.
Assignee: nobody → kinetik
Status: NEW → ASSIGNED
Blocks: 1340002
Depends on: 1340980
Fixed in bug 1340980 landing.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: