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

Issue 12224114: Guard against midstream audio configuration changes. (Closed)

Created:
7 years, 10 months ago by DaleCurtis
Modified:
7 years, 10 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Guard against midstream audio configuration changes. In WebAudio this can lead to oob reads. In HTML5 this will cause garbled audio or oob reads depending on the sample format. The guards in place just ensure channel count nor sample format change between demux and decode. Video already has similar guards in place via the checks done in VideoFrame::IsValidConfig during buffer allocation. BUG=166565 TEST=unit tests pass under ASAN. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182027

Patch Set 1 #

Total comments: 14

Patch Set 2 : Comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -23 lines) Patch
M media/filters/audio_file_reader.h View 2 chunks +7 lines, -2 lines 0 comments Download
M media/filters/audio_file_reader.cc View 1 3 chunks +25 lines, -9 lines 0 comments Download
M media/filters/audio_file_reader_unittest.cc View 1 3 chunks +15 lines, -3 lines 0 comments Download
M media/filters/chunk_demuxer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/filters/ffmpeg_audio_decoder.h View 1 chunk +4 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_audio_decoder.cc View 1 3 chunks +17 lines, -4 lines 0 comments Download
M media/filters/pipeline_integration_test.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.h View 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc View 1 3 chunks +16 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
DaleCurtis
Ronald: Let me know if this seems silly.
7 years, 10 months ago (2013-02-12 00:54:07 UTC) #1
rbultje1
On 2013/02/12 00:54:07, DaleCurtis wrote: > Ronald: Let me know if this seems silly. Uhm... ...
7 years, 10 months ago (2013-02-12 00:58:40 UTC) #2
DaleCurtis
At present we don't support "decode" driven configuration changes, only "demuxer" driven changes; and even ...
7 years, 10 months ago (2013-02-12 01:12:05 UTC) #3
rbultje1
ok, if this is by design I guess it's OK. Eventually, I'd love if we ...
7 years, 10 months ago (2013-02-12 01:13:17 UTC) #4
scherkus (not reviewing)
Responding to questions -- still reviewing code. On 2013/02/12 01:12:05, DaleCurtis wrote: > At present ...
7 years, 10 months ago (2013-02-12 02:11:55 UTC) #5
scherkus (not reviewing)
lgtm w/ nits https://codereview.chromium.org/12224114/diff/1/media/filters/audio_file_reader.cc File media/filters/audio_file_reader.cc (right): https://codereview.chromium.org/12224114/diff/1/media/filters/audio_file_reader.cc#newcode185 media/filters/audio_file_reader.cc:185: DLOG(ERROR) << "Unsupported mid-frame configuration change!" ...
7 years, 10 months ago (2013-02-12 02:16:56 UTC) #6
DaleCurtis
Done % s/mid-stream/midstream/: https://www.google.com/search?q=define+midstream Will CQ tomorrow after test file lands. https://codereview.chromium.org/12224114/diff/1/media/filters/audio_file_reader.cc File media/filters/audio_file_reader.cc (right): ...
7 years, 10 months ago (2013-02-12 02:41:24 UTC) #7
acolwell GONE FROM CHROMIUM
On 2013/02/12 01:12:05, DaleCurtis wrote: > cc: acolwell to get his opinion on non-media-source based ...
7 years, 10 months ago (2013-02-12 17:37:42 UTC) #8
DaleCurtis
I've filed http://crbug.com/175780 and blocked http://crbug.com/122916 on it to track support for configuration changes.
7 years, 10 months ago (2013-02-12 19:07:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/12224114/9001
7 years, 10 months ago (2013-02-12 19:17:47 UTC) #10
commit-bot: I haz the power
7 years, 10 months ago (2013-02-12 21:56:26 UTC) #11
Message was sent while issue was closed.
Change committed as 182027

Powered by Google App Engine
This is Rietveld 408576698