Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(737)

Issue 113963005: Use decoder's timestamp instead of the timestamp from AU during prerolling (Closed)

Created:
6 years, 11 months ago by qinmin
Modified:
6 years, 11 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Use decoder's timestamp instead of the timestamp from AU during prerolling When prerolling happens, MediaDecoderJob currently rolls to the timestamp from the access unit. However, for video, the access unit's timestamp may not match that from the decoder due to reordering. Even worse, the unit's timestamp may be greatly ahead of the presentation timestamp from the decoder since the decoder is still decoding previous access units. Some of the unit tests actually show this problem. Fixed all the problematic unit tests along with this CL. BUG=310823 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243210

Patch Set 1 #

Total comments: 9

Patch Set 2 : addressing comments #

Total comments: 4

Patch Set 3 : adding crbug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -100 lines) Patch
M media/base/android/media_decoder_job.cc View 1 chunk +1 line, -8 lines 0 comments Download
M media/base/android/media_source_player_unittest.cc View 1 2 7 chunks +42 lines, -92 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
qinmin
PTAL
6 years, 11 months ago (2014-01-02 18:16:25 UTC) #1
acolwell GONE FROM CHROMIUM
It doesn't look like any of the tests are actually testing this fix. They all ...
6 years, 11 months ago (2014-01-02 19:07:49 UTC) #2
wolenetz
https://codereview.chromium.org/113963005/diff/1/media/base/android/media_decoder_job.cc File media/base/android/media_decoder_job.cc (right): https://codereview.chromium.org/113963005/diff/1/media/base/android/media_decoder_job.cc#newcode353 media/base/android/media_decoder_job.cc:353: bool render_output = presentation_timestamp >= preroll_timestamp_ && The previous ...
6 years, 11 months ago (2014-01-02 19:24:52 UTC) #3
qinmin
On 2014/01/02 19:07:49, acolwell wrote: > It doesn't look like any of the tests are ...
6 years, 11 months ago (2014-01-02 19:53:00 UTC) #4
qinmin
Addressed all the code comments. For out-of-order case, I am not sure how we can ...
6 years, 11 months ago (2014-01-02 22:57:01 UTC) #5
wolenetz
https://codereview.chromium.org/113963005/diff/90001/media/base/android/media_source_player_unittest.cc File media/base/android/media_source_player_unittest.cc (right): https://codereview.chromium.org/113963005/diff/90001/media/base/android/media_source_player_unittest.cc#newcode436 media/base/android/media_source_player_unittest.cc:436: // TODO(qinmin): Add additional test cases for out-of-order decodes. ...
6 years, 11 months ago (2014-01-02 23:24:21 UTC) #6
qinmin
https://codereview.chromium.org/113963005/diff/90001/media/base/android/media_source_player_unittest.cc File media/base/android/media_source_player_unittest.cc (right): https://codereview.chromium.org/113963005/diff/90001/media/base/android/media_source_player_unittest.cc#newcode436 media/base/android/media_source_player_unittest.cc:436: // TODO(qinmin): Add additional test cases for out-of-order decodes. ...
6 years, 11 months ago (2014-01-02 23:35:22 UTC) #7
wolenetz
lgtm
6 years, 11 months ago (2014-01-02 23:49:32 UTC) #8
qinmin
acolwell@, is the newly added TODO looking good to you? Thanks
6 years, 11 months ago (2014-01-06 18:07:32 UTC) #9
acolwell GONE FROM CHROMIUM
lgtm
6 years, 11 months ago (2014-01-06 19:56:17 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/113963005/150001
6 years, 11 months ago (2014-01-06 20:00:32 UTC) #11
commit-bot: I haz the power
6 years, 11 months ago (2014-01-07 00:02:22 UTC) #12
Message was sent while issue was closed.
Change committed as 243210

Powered by Google App Engine
This is Rietveld 408576698