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

Issue 257563007: Don't double correct for discarded codec delay frames. (Closed)

Created:
6 years, 8 months ago by DaleCurtis
Modified:
6 years, 7 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, wolenetz
Visibility:
Public.

Description

Don't double correct for discarded codec delay frames. The existing code was correcting twice for discarded codec delay frames. Once by adjusting the initial timestamp and twice by discarding those frames before generating the output timestamp. This change also adds a test helper to AudioFileReader so we can demux audio files in tests without duplicating code. As a bonus it provides some additional coverage to AudioFileReader. I've also reused several FFmpegCommon methods where possible. BUG=360961 TEST=Adds opus unit tests. Plus a basic playback test for ogg. NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266639

Patch Set 1 #

Patch Set 2 : Test everything. #

Total comments: 1

Patch Set 3 : Rebase. #

Patch Set 4 : Fix rebase. #

Total comments: 2

Patch Set 5 : Style cleanup. Fix rendundant Initialize(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -15 lines) Patch
M media/ffmpeg/ffmpeg_common.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M media/ffmpeg/ffmpeg_common.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/filters/audio_file_reader.h View 1 2 chunks +13 lines, -0 lines 0 comments Download
M media/filters/audio_file_reader.cc View 1 2 chunks +18 lines, -8 lines 0 comments Download
M media/filters/opus_audio_decoder.cc View 1 2 3 3 chunks +5 lines, -6 lines 0 comments Download
A media/filters/opus_audio_decoder_unittest.cc View 1 2 3 4 1 chunk +196 lines, -0 lines 0 comments Download
M media/filters/pipeline_integration_test.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
DaleCurtis
Per discussion. There's no easy way I can think of to test this since GetMediaTime() ...
6 years, 8 months ago (2014-04-24 23:08:50 UTC) #1
DaleCurtis
Actually looks like rileya@ has some half baked unit tests in progress that never got ...
6 years, 8 months ago (2014-04-25 17:00:08 UTC) #2
DaleCurtis
Now with tests! PTAL. https://codereview.chromium.org/257563007/diff/30001/media/filters/opus_audio_decoder.cc File media/filters/opus_audio_decoder.cc (right): https://codereview.chromium.org/257563007/diff/30001/media/filters/opus_audio_decoder.cc#newcode534 media/filters/opus_audio_decoder.cc:534: output_timestamp_helper_->AddFrames(frames_to_output); This is already fixed ...
6 years, 8 months ago (2014-04-25 18:23:12 UTC) #3
wolenetz
drive-by question: I'm confused a bit. Where were the codec delay frames previously corrected for, ...
6 years, 8 months ago (2014-04-25 23:35:53 UTC) #4
DaleCurtis
Whoops, I messed up the rebase on top of https://codereview.chromium.org/251583003/ Thanks for catching, fixed in ...
6 years, 8 months ago (2014-04-25 23:54:09 UTC) #5
acolwell GONE FROM CHROMIUM
lgtm % comment. https://codereview.chromium.org/257563007/diff/70001/media/filters/opus_audio_decoder.cc File media/filters/opus_audio_decoder.cc (right): https://codereview.chromium.org/257563007/diff/70001/media/filters/opus_audio_decoder.cc#newcode292 media/filters/opus_audio_decoder.cc:292: if (!opus_decoder_) Why is this needed ...
6 years, 8 months ago (2014-04-26 00:42:15 UTC) #6
DaleCurtis
https://codereview.chromium.org/257563007/diff/70001/media/filters/opus_audio_decoder.cc File media/filters/opus_audio_decoder.cc (right): https://codereview.chromium.org/257563007/diff/70001/media/filters/opus_audio_decoder.cc#newcode292 media/filters/opus_audio_decoder.cc:292: if (!opus_decoder_) On 2014/04/26 00:42:16, acolwell wrote: > Why ...
6 years, 8 months ago (2014-04-26 01:04:40 UTC) #7
DaleCurtis
The CQ bit was checked by dalecurtis@chromium.org
6 years, 7 months ago (2014-04-28 16:15:51 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/257563007/110001
6 years, 7 months ago (2014-04-28 16:16:24 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 16:56:47 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 7 months ago (2014-04-28 16:56:48 UTC) #11
DaleCurtis
The CQ bit was checked by dalecurtis@chromium.org
6 years, 7 months ago (2014-04-28 17:12:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/257563007/110001
6 years, 7 months ago (2014-04-28 17:13:06 UTC) #13
DaleCurtis
The CQ bit was unchecked by dalecurtis@chromium.org
6 years, 7 months ago (2014-04-28 19:53:06 UTC) #14
DaleCurtis
The CQ bit was checked by dalecurtis@chromium.org
6 years, 7 months ago (2014-04-28 19:53:12 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/257563007/110001
6 years, 7 months ago (2014-04-28 19:53:55 UTC) #16
commit-bot: I haz the power
6 years, 7 months ago (2014-04-28 19:59:39 UTC) #17
Message was sent while issue was closed.
Change committed as 266639

Powered by Google App Engine
This is Rietveld 408576698