Closed
Bug 1145517
Opened 11 years ago
Closed 11 years ago
H264::DecodeNALUnit doesn't properly handle emulation prevention bytes
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla39
People
(Reporter: jya, Assigned: jya)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
1007 bytes,
patch
|
cpearce
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
2.41 KB,
patch
|
cpearce
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
The H264 SPS parser expect data to have been decoded and that the emulation prevention bytes been removed.
However, the H264::DecodeNALUnit doesn't properly handle those that leads to invalid data being decoded.
In particular, with some videos the aspect ratios are incorrectly read.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → jyavenard
Status: NEW → ASSIGNED
Comment 2•11 years ago
|
||
Comment on attachment 8580553 [details] [diff] [review]
Properly skip the NAL's emulation prevention byte
Review of attachment 8580553 [details] [diff] [review]:
-----------------------------------------------------------------
Legend!
Attachment #8580553 -
Flags: review?(cpearce) → review+
Assignee | ||
Comment 3•11 years ago
|
||
I can't right now think on why it would have been a problem, but I'm now not confident with that optimisation. So follow exactly the algorithm as per ITU H.264 7.3.1
Attachment #8580567 -
Flags: review?(cpearce)
Assignee | ||
Updated•11 years ago
|
Attachment #8580567 -
Attachment is obsolete: true
Attachment #8580567 -
Flags: review?(cpearce)
Updated•11 years ago
|
Attachment #8580576 -
Flags: review?(cpearce) → review+
Comment 5•11 years ago
|
||
Comment 6•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/45d65bb9e0ef
https://hg.mozilla.org/integration/mozilla-inbound/rev/63b94f124c88
Must uplift too. Working beautiful now.
Flags: needinfo?(cpearce)
Comment 7•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/45d65bb9e0ef
https://hg.mozilla.org/mozilla-central/rev/63b94f124c88
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Comment 8•11 years ago
|
||
Comment on attachment 8580553 [details] [diff] [review]
Properly skip the NAL's emulation prevention byte
Approval Request Comment
[Feature/regressing bug #]: EME
[User impact if declined]: EME videos will appear at incorrect apsect ratio
[Describe test coverage new/current, TreeHerder]: Local testing.
[Risks and why]: Pretty low, we've tested this pretty thoroughly locally over the weekend.
[String/UUID change made/needed]: None.
Attachment #8580553 -
Flags: approval-mozilla-aurora?
Comment 9•11 years ago
|
||
Comment on attachment 8580576 [details] [diff] [review]
Part2. Follow exactly ITU H.264 7.3.1
Approval Request Comment
[Feature/regressing bug #]: EME
[User impact if declined]: EME videos will appear at incorrect apsect ratio
[Describe test coverage new/current, TreeHerder]: Local testing.
[Risks and why]: Pretty low, we've tested this pretty thoroughly locally over the weekend.
[String/UUID change made/needed]: None.
Attachment #8580576 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Attachment #8580553 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•11 years ago
|
Attachment #8580576 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 10•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/3fcf7cee3050
https://hg.mozilla.org/releases/mozilla-aurora/rev/d174fe615e30
status-firefox38:
--- → fixed
Updated•11 years ago
|
Flags: needinfo?(cpearce)
You need to log in
before you can comment on or make changes to this bug.
Description
•