DescriptionFix unsupported audio channel layout
We currently do not check the returned channel layout when converting
Ffmpeg to chrome channel layouts. This means that we still try to create
audio buffers whenever we have an unsupported channel layout. This
causes some tests to crash when hitting a DCHECK in AudioBuffer's ctor.
This CL fixes the issue by erroring out early rather than trying to
create an invalid AudioBuffer.
BUG=699373
TEST=manually checked it didn't crash anymore
Review-Url: https://codereview.chromium.org/2748023004
Cr-Commit-Position: refs/heads/master@{#457302}
Committed: https://chromium.googlesource.com/chromium/src/+/cd31831bb240ce19d3e3af6f2b95f8ad11c96e5c
Patch Set 1 #
Messages
Total messages: 9 (5 generated)
|