Closed
Bug 1404661
Opened 8 years ago
Closed 8 years ago
Typo in dom/media/flac/FlacDemuxer.cpp:86
Categories
(Core :: Audio/Video: Playback, enhancement)
Tracking
()
RESOLVED
FIXED
mozilla58
| Tracking | Status | |
|---|---|---|
| firefox58 | --- | fixed |
People
(Reporter: robwu, Assigned: robwu)
Details
Attachments
(1 file)
FrameHeader::Parse has the following comment [1]:
// Reserved bit, most be 1.
if (br.ReadBit()) {
// Broken stream, invalid padding.
return false;
}
The comment and the code do not match with each other. Clearly, if the bit is 1, the function returns false (i.e. header is invalid).
According to https://xiph.org/flac/format.html#frame_header (after the "Sample size in bits:" row), this value must be:
Reserved:
0 : mandatory value
1 : reserved for future use
So the code is correct, and the comment is wrong.
[1] https://searchfox.org/mozilla-central/rev/c296ed9811319cdd61ac35e9e648f95639cda726/dom/media/flac/FlacDemuxer.cpp#86
| Comment hidden (mozreview-request) |
Comment on attachment 8914019 [details]
Bug 1404661 - Fix typo in comment of flac::FrameHeader::Parse
https://reviewboard.mozilla.org/r/185412/#review190836
Attachment #8914019 -
Flags: review?(dglastonbury) → review+
Pushed by rob@robwu.nl:
https://hg.mozilla.org/integration/autoland/rev/e5658cad4190
Fix typo in comment of flac::FrameHeader::Parse r=kamidphish
Comment 4•8 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in
before you can comment on or make changes to this bug.
Description
•