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

Unified Diff: media/filters/audio_decoder_unittest.cc

Issue 2063443002: Return parsed sample frequency of ADTS header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SBR Created 4 years, 6 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 | « no previous file | media/formats/mp2t/es_parser_adts.cc » ('j') | media/formats/mp2t/es_parser_adts_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_decoder_unittest.cc
diff --git a/media/filters/audio_decoder_unittest.cc b/media/filters/audio_decoder_unittest.cc
index 76ce8ec444b8d1b7590c94391bfe006b94218fae..d8e7e4e005c744851c969fb6fd18a5e877aa10b3 100644
--- a/media/filters/audio_decoder_unittest.cc
+++ b/media/filters/audio_decoder_unittest.cc
@@ -204,7 +204,9 @@ class AudioDecoderTest : public testing::TestWithParam<DecoderTestData> {
// streams we need to extract it with a separate procedure.
if (GetParam().decoder_type == MEDIA_CODEC &&
GetParam().codec == kCodecAAC && config.extra_data().empty()) {
- ASSERT_TRUE(ParseAdtsHeader(packet.data, false, &config));
+ size_t ignore_orig_sample_rate;
+ ASSERT_TRUE(ParseAdtsHeader(packet.data, false, &config,
+ &ignore_orig_sample_rate));
ASSERT_FALSE(config.extra_data().empty());
}
#endif
« no previous file with comments | « no previous file | media/formats/mp2t/es_parser_adts.cc » ('j') | media/formats/mp2t/es_parser_adts_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698