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

Unified Diff: media/formats/mpeg/adts_header_parser.cc

Issue 1517473002: Support HLS MPEG2 TS with SAMPLE-AES encryption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@encryption_scheme
Patch Set: move some gn defs Created 4 years, 9 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
Index: media/formats/mpeg/adts_header_parser.cc
diff --git a/media/formats/mpeg/adts_header_parser.cc b/media/formats/mpeg/adts_header_parser.cc
index b2162a905028561899389aadbe834d2139c97928..c63b8b941e3b03b4ab1ad612ed30390b2246e416 100644
--- a/media/formats/mpeg/adts_header_parser.cc
+++ b/media/formats/mpeg/adts_header_parser.cc
@@ -9,6 +9,7 @@
#include "base/logging.h"
#include "media/base/audio_codecs.h"
#include "media/base/audio_decoder_config.h"
+#include "media/base/encryption_scheme.h"
ddorwin 2016/04/12 00:40:48 Do you need this?
dougsteed 2016/05/08 23:18:45 Since I use "EncryptionScheme" explicitly in this
#include "media/base/media_util.h"
#include "media/base/sample_format.h"
#include "media/formats/mpeg/adts_constants.h"
@@ -29,6 +30,7 @@ size_t ExtractAdtsChannelConfig(const uint8_t* adts_header) {
bool ParseAdtsHeader(const uint8_t* adts_header,
bool is_sbr,
+ const EncryptionScheme& scheme,
AudioDecoderConfig* config) {
DCHECK(adts_header);
@@ -76,8 +78,7 @@ bool ParseAdtsHeader(const uint8_t* adts_header,
DCHECK(config);
*config = AudioDecoderConfig(kCodecAAC, kSampleFormatS16,
kADTSChannelLayoutTable[channel_configuration],
- extended_samples_per_second, extra_data,
- Unencrypted());
+ extended_samples_per_second, extra_data, scheme);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698