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

Unified Diff: media/filters/decrypting_demuxer_stream_unittest.cc

Issue 11280301: Roll FFMpeg for M26. Fix ffmpeg float audio decoding. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... rebase Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/filters/decrypting_demuxer_stream.cc ('k') | media/filters/ffmpeg_audio_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/decrypting_demuxer_stream_unittest.cc
diff --git a/media/filters/decrypting_demuxer_stream_unittest.cc b/media/filters/decrypting_demuxer_stream_unittest.cc
index 55ecc01c1893c3aca1913a2835613a7765750eff..3c87d8bd43194e09ef1ae81ccae487fcf4c8698d 100644
--- a/media/filters/decrypting_demuxer_stream_unittest.cc
+++ b/media/filters/decrypting_demuxer_stream_unittest.cc
@@ -119,16 +119,20 @@ class DecryptingDemuxerStreamTest : public testing::Test {
.WillOnce(SaveArg<1>(&key_added_cb_));
AudioDecoderConfig input_config(
- kCodecVorbis, 16, CHANNEL_LAYOUT_STEREO, 44100, NULL, 0, true);
+ kCodecVorbis, kSampleFormatPlanarF32, CHANNEL_LAYOUT_STEREO, 44100,
+ NULL, 0, true);
InitializeAudioAndExpectStatus(input_config, PIPELINE_OK);
const AudioDecoderConfig& output_config =
demuxer_stream_->audio_decoder_config();
EXPECT_EQ(DemuxerStream::AUDIO, demuxer_stream_->type());
EXPECT_FALSE(output_config.is_encrypted());
- EXPECT_EQ(16, output_config.bits_per_channel());
- EXPECT_EQ(CHANNEL_LAYOUT_STEREO, output_config.channel_layout());
- EXPECT_EQ(44100, output_config.samples_per_second());
+ EXPECT_EQ(input_config.bits_per_channel(),
+ output_config.bits_per_channel());
+ EXPECT_EQ(input_config.channel_layout(), output_config.channel_layout());
+ EXPECT_EQ(input_config.sample_format(), output_config.sample_format());
+ EXPECT_EQ(input_config.samples_per_second(),
+ output_config.samples_per_second());
}
void ReadAndExpectBufferReadyWith(
@@ -410,7 +414,8 @@ TEST_F(DecryptingDemuxerStreamTest, DemuxerRead_ConfigChanged) {
Initialize();
AudioDecoderConfig new_config(
- kCodecVorbis, 32, CHANNEL_LAYOUT_STEREO, 88200, NULL, 0, true);
+ kCodecVorbis, kSampleFormatPlanarF32, CHANNEL_LAYOUT_STEREO, 88200, NULL,
+ 0, true);
EXPECT_CALL(*input_audio_stream_, audio_decoder_config())
.WillRepeatedly(ReturnRef(new_config));
« no previous file with comments | « media/filters/decrypting_demuxer_stream.cc ('k') | media/filters/ffmpeg_audio_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698