Index: media/formats/mp2t/es_parser_mpeg1audio.cc |
diff --git a/media/formats/mp2t/es_parser_mpeg1audio.cc b/media/formats/mp2t/es_parser_mpeg1audio.cc |
index 5032887593c0ef78ea2e0095f89828a890b5f58a..81b8396d1add3f0d918745f17ad4008a33479366 100644 |
--- a/media/formats/mp2t/es_parser_mpeg1audio.cc |
+++ b/media/formats/mp2t/es_parser_mpeg1audio.cc |
@@ -12,6 +12,7 @@ |
#include "media/base/audio_timestamp_helper.h" |
#include "media/base/bit_reader.h" |
#include "media/base/channel_layout.h" |
+#include "media/base/media_util.h" |
#include "media/base/stream_parser_buffer.h" |
#include "media/base/timestamp_constants.h" |
#include "media/formats/common/offset_byte_queue.h" |
@@ -170,12 +171,8 @@ bool EsParserMpeg1Audio::UpdateAudioConfiguration( |
// TODO(damienv): Verify whether Android playback requires the extra data |
// field for Mpeg1 audio. If yes, we should generate this field. |
AudioDecoderConfig audio_decoder_config( |
- kCodecMP3, |
- kSampleFormatS16, |
- header.channel_layout, |
- header.sample_rate, |
- std::vector<uint8_t>(), |
- false); |
+ kCodecMP3, kSampleFormatS16, header.channel_layout, header.sample_rate, |
+ std::vector<uint8_t>(), Unencrypted()); |
xhwang
2016/03/04 20:00:48
nti: EmptyExtraData(), thanks!
dougsteed
2016/03/07 17:49:13
Done.
|
if (!audio_decoder_config.Matches(last_audio_decoder_config_)) { |
DVLOG(1) << "Sampling frequency: " << header.sample_rate; |