| Index: chromecast/public/media/decrypt_context.h
|
| diff --git a/chromecast/public/media/decrypt_context.h b/chromecast/public/media/decrypt_context.h
|
| index 05e5a1a02a07b8c3f37b49ec4c5486815d6eafba..0d152817de26322f3e31ef7e4149fbf6c66034ac 100644
|
| --- a/chromecast/public/media/decrypt_context.h
|
| +++ b/chromecast/public/media/decrypt_context.h
|
| @@ -22,10 +22,16 @@ class DecryptContext {
|
| // Get the key system to use for decryption.
|
| virtual CastKeySystem GetKeySystem() = 0;
|
|
|
| - // Decrypts the given buffer. Returns true/false for success/failure,
|
| - // and places the decrypted data in output if successful.
|
| + // Decrypts the given buffer. Returns true/false for success/failure.
|
| + //
|
| + // The decrypted data will be of size |buffer.data_size()| and there must be
|
| + // enough space in |output| to store that data.
|
| + //
|
| + // If non-zero, |data_offset| specifies an offset to be applied to |output|
|
| + // before the decrypted data is written.
|
| virtual bool Decrypt(CastDecoderBuffer* buffer,
|
| - std::vector<uint8_t>* output) = 0;
|
| + uint8_t* output,
|
| + size_t data_offset) = 0;
|
| };
|
|
|
| } // namespace media
|
|
|