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

Side by Side Diff: chromecast/media/cma/pipeline/decrypt_util.cc

Issue 1494713002: [Chromecast] Move CastAudioDecoder out to chromecast/media/cma/decoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromecast/media/cma/pipeline/decrypt_util.h" 5 #include "chromecast/media/cma/pipeline/decrypt_util.h"
6 6
7 #include <openssl/aes.h> 7 #include <openssl/aes.h>
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "chromecast/media/cma/base/decoder_buffer_base.h" 11 #include "chromecast/media/base/decoder_buffer_base.h"
12 #include "chromecast/public/media/cast_decrypt_config.h" 12 #include "chromecast/public/media/cast_decrypt_config.h"
13 #include "crypto/symmetric_key.h" 13 #include "crypto/symmetric_key.h"
14 #include "media/base/decoder_buffer.h" 14 #include "media/base/decoder_buffer.h"
15 15
16 namespace chromecast { 16 namespace chromecast {
17 namespace media { 17 namespace media {
18 18
19 namespace { 19 namespace {
20 20
21 class DecoderBufferClear : public DecoderBufferBase { 21 class DecoderBufferClear : public DecoderBufferBase {
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 data + offset, data + offset, cypher_bytes, &aes_key, 135 data + offset, data + offset, cypher_bytes, &aes_key,
136 aes_iv, ecount_buf, &encrypted_byte_offset); 136 aes_iv, ecount_buf, &encrypted_byte_offset);
137 offset += cypher_bytes; 137 offset += cypher_bytes;
138 } 138 }
139 139
140 return scoped_refptr<DecoderBufferBase>(new DecoderBufferClear(buffer)); 140 return scoped_refptr<DecoderBufferBase>(new DecoderBufferClear(buffer));
141 } 141 }
142 142
143 } // namespace media 143 } // namespace media
144 } // namespace chromecast 144 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698