Closed
Bug 1363276
Opened 8 years ago
Closed 8 years ago
Android remote decoder doesn't return video frames on Android 4.2.2
Categories
(Firefox for Android Graveyard :: Audio/Video, defect, P1)
Firefox for Android Graveyard
Audio/Video
Tracking
(firefox54+ fixed, firefox55 fixed)
VERIFIED
FIXED
Firefox 55
People
(Reporter: jhlin, Assigned: jhlin)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
59 bytes,
text/x-review-board-request
|
esawin
:
review+
gchang
:
approval-mozilla-beta+
|
Details |
The size in the buffer info returned by 4.2.2 video decoder is 0 and the buffer will be dropped in OnOutput.
Comment hidden (mozreview-request) |
Comment 2•8 years ago
|
||
mozreview-review |
Comment on attachment 8865772 [details]
Bug 1363276 - discard video output buffers according to presentation time rather than size.
https://reviewboard.mozilla.org/r/137396/#review140590
What about the audio decoder, can this happen there, too?
Is it even save to decode with zero-sized buffers, isn't that a bug in the codec implementation?
::: dom/media/platforms/android/RemoteDataDecoder.cpp:135
(Diff revision 1)
> if (!mDecoder->mInputInfos.Find(presentationTimeUs, inputInfo)
> && !isEOS) {
> return;
> }
>
> - if (size > 0) {
> + if (presentationTimeUs >= 0) {
size is now unused and can be removed.
Attachment #8865772 -
Flags: review?(esawin) → review+
Comment 3•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8865772 [details]
Bug 1363276 - discard video output buffers according to presentation time rather than size.
https://reviewboard.mozilla.org/r/137396/#review140590
s/save/safe
Comment hidden (mozreview-request) |
Assignee | ||
Comment 5•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8865772 [details]
Bug 1363276 - discard video output buffers according to presentation time rather than size.
https://reviewboard.mozilla.org/r/137396/#review140590
This only applies to video for it uses surface/graphic buffer as output target.
ACodec fixed it after 4.2.2: https://android.googlesource.com/platform/frameworks/av/+/21ad778dcfcddb8f8fd9dc3fe4992fbef246c511
Comment hidden (mozreview-request) |
Updated•8 years ago
|
Assignee: nobody → jolin
Priority: -- → P1
Comment hidden (mozreview-request) |
Pushed by jolin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0eb6bcebaf3d
discard video output buffers according to presentation time rather than size. r=esawin
Comment 9•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Comment 10•8 years ago
|
||
Ioana,
Can you help test it with the latest nightly?
Flags: qe-verify+
Flags: needinfo?(ioana.chiorean)
Comment 12•8 years ago
|
||
Tested by both latest nightly and beta. Using Google Nexus4 by Android 4.2.2
STR:
1. open browser
2. navigate to youtube
3. choose random video, play, pause, stop, reload for several times.
4. tap another video by recommended list.
5. repeat step 3
6. test other video source, like facebook.
EXPECTED RESULT:
- video can be played, paused, reloaded successfully.
ACTUAL RESULT:
beta
- none of youtube video can be played; only placeholder(spinning icon) was showed.
- facebook video can't be played.
nightly
- complete STR can be performed successfully.
Assignee | ||
Comment 13•8 years ago
|
||
Comment on attachment 8865772 [details]
Bug 1363276 - discard video output buffers according to presentation time rather than size.
Approval Request Comment
[Feature/Bug causing the regression]: bug 1257777
[User impact if declined]: video fails to play on Android 4.2.2 devices
[Is this code covered by automated tests?]: no
[Has the fix been verified in Nightly?]: yes
[Needs manual test from QE? If yes, steps to reproduce]: yes. see comment 12
[List of other uplifts needed for the feature/fix]: none
[Is the change risky?]: low risk
[Why is the change risky/not risky?]: presentation time is more reliable than size
[String changes made/needed]: none
Attachment #8865772 -
Flags: approval-mozilla-beta?
Comment 14•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8865772 [details]
Bug 1363276 - discard video output buffers according to presentation time rather than size.
https://reviewboard.mozilla.org/r/137396/#review140590
> size is now unused and can be removed.
it is also possible for presentationTimeUs to be negative... Should set a particular value (like INT64_MIN) rather than dropping all frames with a negative timestamp.
Updated•8 years ago
|
status-firefox54:
--- → affected
Assignee | ||
Comment 15•8 years ago
|
||
Will open another bug to handle negative timestamp frames.
Assignee | ||
Comment 16•8 years ago
|
||
Bug 1366706 was filed as follow-up of comment 14.
Comment 17•8 years ago
|
||
Comment on attachment 8865772 [details]
Bug 1363276 - discard video output buffers according to presentation time rather than size.
This fix a critical issue that video fails to play on Android 4.2.2 devices and was verified. Beta54+. Should be in 54 beta 10.
Attachment #8865772 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 18•8 years ago
|
||
bugherder uplift |
Comment 19•7 years ago
|
||
Prestigio PSP5508DUO Android 4.4.2
STR:
1. open browser
2. navigate to youtube,facebook, tiff.ro etc.
3. choose random video, play, pause, stop, reload for several times.
Expected and Actual Results:
- media process is showed separately
- media is played correctly
Status: RESOLVED → VERIFIED
Flags: needinfo?(ioana.chiorean)
Updated•6 years ago
|
Keywords: regression
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
Updated•3 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•