summaryrefslogtreecommitdiffstats
path: root/media/mp4
diff options
context:
space:
mode:
Diffstat (limited to 'media/mp4')
-rw-r--r--media/mp4/mp4_stream_parser.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/mp4/mp4_stream_parser.cc b/media/mp4/mp4_stream_parser.cc
index fc141b5..c600537 100644
--- a/media/mp4/mp4_stream_parser.cc
+++ b/media/mp4/mp4_stream_parser.cc
@@ -199,10 +199,11 @@ bool MP4StreamParser::ParseMoov(BoxReader* reader) {
return false;
}
+ bool is_encrypted = entry.sinf.info.track_encryption.is_encrypted;
audio_config.Initialize(kCodecAAC, entry.samplesize,
aac.channel_layout(),
aac.GetOutputSamplesPerSecond(has_sbr_),
- NULL, 0, false);
+ NULL, 0, is_encrypted, false);
has_audio_ = true;
audio_track_id_ = track->header.track_id;
}