Skip to content
Browse files

Fixed sample video corrupted in MediaCodec mode.

Change-Id: Ibe11a83199f3db1ba6266a1a9e11c7fc24ceb554
related-to-bug: 6732061
  • Loading branch information...
1 parent 354d2c0 commit f5acb3944c64cacbb186195eac0b306db13668ae Edwin Wong committed with xoomdev
Showing with 3 additions and 1 deletion.
  1. +3 −1 include/media/hardware/CryptoAPI.h
View
4 include/media/hardware/CryptoAPI.h
@@ -70,7 +70,9 @@ struct CryptoPlugin {
// At the java level these special errors will then trigger a
// MediaCodec.CryptoException that gives clients access to both
// the error code and the errorDetailMsg.
- virtual status_t decrypt(
+ // Returns a non-negative result to indicate the number of bytes written
+ // to the dstPtr, or a negative result to indicate an error.
+ virtual ssize_t decrypt(
bool secure,
const uint8_t key[16],
const uint8_t iv[16],

0 comments on commit f5acb39

Please sign in to comment.
Something went wrong with that request. Please try again.