Workaround unset OpenH264 NAL size in WebrtcGmpVideoEncoder::Encoded
Categories
(Core :: WebRTC: Audio/Video, enhancement, P2)
Tracking
()
People
(Reporter: dminor, Assigned: dminor)
References
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
|
Details |
In Bug 1533001, we're hitting an assertion due to an invalid size coming from OpenH264 on Android. It turns out the invalid size is always 0x01000000, which indicates that the codec did not set a size for that NAL.
This issue has been reported to Cisco. For now, we can just ignore the bad frames as a workaround. We can revert this change once the issue has been fixed upstream.
Assignee | ||
Comment 1•6 years ago
|
||
OpenH264 1.8.1 occasionally generates a size of 0x01000000. This is a magic
value in the NAL which should be replaced with a valid size, but for some
reason this is not always happening. If we return early here, encoding will
continue to work as expected. This workaround can be removed once this issue is
addressed upstream, although that may require a new release of OpenH264.
Pushed by dminor@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ec0b9bfa6564 Workaround unset NAL size in WebrtcGmpVideoEncoder::Encoded; r=pehrsons
Comment 3•6 years ago
|
||
bugherder |
Assignee | ||
Comment 4•6 years ago
|
||
Comment on attachment 9054605 [details]
Bug 1540251 - Workaround unset NAL size in WebrtcGmpVideoEncoder::Encoded; r=pehrsons!
Beta/Release Uplift Approval Request
- User impact if declined: This doesn't have an user impact. This change returns early before an assertion and so only affects debug builds which are not normally run by users. I would like to uplift this so we match the behaviour on Nightly and to make it easier to debug if we hit problems with OpenH264 on Beta.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This doesn't change the existing behaviour on non-debug builds. On debug builds, it will return early prior to an assertion to workaround a known problem with the 1.8.1 OpenH264 plugin.
- String changes made/needed: None
Comment 5•6 years ago
|
||
Comment on attachment 9054605 [details]
Bug 1540251 - Workaround unset NAL size in WebrtcGmpVideoEncoder::Encoded; r=pehrsons!
No impact on users build but will make our devs life easier, uplift approved for 67 beta 15, thanks.
Description
•