Closed Bug 1217802 Opened 9 years ago Closed 9 years ago

Optimize frame buffer size during scanning in MP3Demuxer

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
firefox45 --- fixed

People

(Reporter: esawin, Assigned: esawin)

Details

Attachments

(2 files)

Assignee: nobody → esawin
Priority: -- → P2
When verifying my claim [1] that we can set the buffer size arbitrary small, I've noticed that we fail to recognize ID3 headers with large sizes properly when their size field spans across multiple buffer lengths.

The reason for this is because we report the incomplete ID3 tag size before finishing reading the ID3 header.

This patch fixes it, we only report the ID3 tag size, once we have fully parsed it.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1163667#c36
Attachment #8689694 - Flags: review?(jyavenard)
Attachment #8689694 - Flags: review?(jyavenard) → review+
https://hg.mozilla.org/mozilla-central/rev/e7f29a360692
https://hg.mozilla.org/mozilla-central/rev/0423359e6667
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: