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

Side by Side Diff: media/crypto/decryptor_helpers.cc

Issue 10829470: Support for parsing encrypted WebM streams by src. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed bug with playing latest encrypted WebM. Addressing comments. Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "media/crypto/decryptor_helpers.h"
6
7 #include "media/base/decrypt_config.h"
8
9 namespace media {
10
11 std::string GenerateCounterBlock(uint64 iv) {
12 std::string counter_block(reinterpret_cast<char*>(&iv), sizeof(iv));
ddorwin 2012/09/01 16:46:41 I wonder if we'd be better off reserving the final
13 counter_block.append(DecryptConfig::kDecryptionKeySize - sizeof(iv), 0);
14 return counter_block;
15 }
16
17 } // media
xhwang 2012/08/29 05:08:14 // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698