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

Issue 11888011: media: Fix Opus support, and handle bad timestamps correctly in the Opus wrapper. (Closed)

Created:
7 years, 11 months ago by Tom Finegan
Modified:
7 years, 11 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, fgalligan1
Visibility:
Public.

Description

media: Fix Opus support, and handle bad timestamps correctly in the Opus wrapper. - Recent changes to ffmpeg_common broke support for Opus. The check fails because Opus support is not enabled in FFmpeg, which causes the FFmpeg codec context to contain an invalid sample format value. Avoid the problem by skipping a DCHECK for Opus input. - Add missing return when non-monotonically increasing timestamps are detected by the OpusAudioDecoder. This fixes a crash when attempting to seek the Ogg file referenced in crbug.com/168524. BUG=168524 TEST=Opus audio in WebM containers plays back with the flag --enable-opus-playback Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177061

Patch Set 1 #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M media/ffmpeg/ffmpeg_common.cc View 1 chunk +4 lines, -2 lines 5 comments Download
M media/filters/opus_audio_decoder.cc View 1 chunk +1 line, -0 lines 4 comments Download

Messages

Total messages: 13 (0 generated)
Tom Finegan
PTAL: Don't let the commit message scare you; it's a tiny CL. Thanks!
7 years, 11 months ago (2013-01-14 20:29:51 UTC) #1
fbarchard1
with a public ffmpeg build from today, I see opus? ffmpeg -i tulip2.opus.webm Input #0, ...
7 years, 11 months ago (2013-01-14 20:42:30 UTC) #2
Tom Finegan
On 2013/01/14 20:42:30, fbarchard1 wrote: > with a public ffmpeg build from today, I see ...
7 years, 11 months ago (2013-01-14 20:50:54 UTC) #3
DaleCurtis
lgtm
7 years, 11 months ago (2013-01-14 21:09:49 UTC) #4
fbarchard1
https://codereview.chromium.org/11888011/diff/1/media/filters/opus_audio_decoder.cc File media/filters/opus_audio_decoder.cc (right): https://codereview.chromium.org/11888011/diff/1/media/filters/opus_audio_decoder.cc#newcode361 media/filters/opus_audio_decoder.cc:361: return; I've seen this message before, and it sounds ...
7 years, 11 months ago (2013-01-15 00:48:36 UTC) #5
Tom Finegan
On 2013/01/15 00:48:36, fbarchard1 wrote: > https://codereview.chromium.org/11888011/diff/1/media/filters/opus_audio_decoder.cc > File media/filters/opus_audio_decoder.cc (right): > > https://codereview.chromium.org/11888011/diff/1/media/filters/opus_audio_decoder.cc#newcode361 > ...
7 years, 11 months ago (2013-01-15 00:52:07 UTC) #6
DaleCurtis
https://codereview.chromium.org/11888011/diff/1/media/filters/opus_audio_decoder.cc File media/filters/opus_audio_decoder.cc (right): https://codereview.chromium.org/11888011/diff/1/media/filters/opus_audio_decoder.cc#newcode361 media/filters/opus_audio_decoder.cc:361: return; On 2013/01/15 00:48:36, fbarchard1 wrote: > I've seen ...
7 years, 11 months ago (2013-01-15 01:00:28 UTC) #7
fbarchard1
I'm okay with the Opus hack, but would prefer a comment about why. Its the ...
7 years, 11 months ago (2013-01-15 02:26:50 UTC) #8
Tom Finegan
https://codereview.chromium.org/11888011/diff/1/media/ffmpeg/ffmpeg_common.cc File media/ffmpeg/ffmpeg_common.cc (right): https://codereview.chromium.org/11888011/diff/1/media/ffmpeg/ffmpeg_common.cc#newcode292 media/ffmpeg/ffmpeg_common.cc:292: if (codec != kCodecOpus) { On 2013/01/15 02:26:50, fbarchard1 ...
7 years, 11 months ago (2013-01-15 02:44:51 UTC) #9
fbarchard1
LGTM Re Input timestamps are not monotonically increasing! Discussed offline. This is already in audio ...
7 years, 11 months ago (2013-01-15 23:10:17 UTC) #10
Tom Finegan
https://codereview.chromium.org/11888011/diff/1/media/ffmpeg/ffmpeg_common.cc File media/ffmpeg/ffmpeg_common.cc (right): https://codereview.chromium.org/11888011/diff/1/media/ffmpeg/ffmpeg_common.cc#newcode275 media/ffmpeg/ffmpeg_common.cc:275: // TODO(tomfinegan): |sample_fmt| in |codec_context| is -1... because On ...
7 years, 11 months ago (2013-01-15 23:22:28 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tomfinegan@chromium.org/11888011/1
7 years, 11 months ago (2013-01-15 23:25:47 UTC) #12
commit-bot: I haz the power
7 years, 11 months ago (2013-01-16 02:42:51 UTC) #13
Message was sent while issue was closed.
Change committed as 177061

Powered by Google App Engine
This is Rietveld 408576698