Loading media/libstagefright/MediaCodec.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -589,7 +589,12 @@ status_t MediaCodec::getBufferAndFormat( if (index < buffers->size()) { const BufferInfo &info = buffers->itemAt(index); if (info.mOwnedByClient) { // by the time buffers array is initialized, crypto is set if (portIndex == kPortIndexInput && mCrypto != NULL) { *buffer = info.mEncryptedData; } else { *buffer = info.mData; } *format = info.mFormat; } } Loading Loading
media/libstagefright/MediaCodec.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -589,7 +589,12 @@ status_t MediaCodec::getBufferAndFormat( if (index < buffers->size()) { const BufferInfo &info = buffers->itemAt(index); if (info.mOwnedByClient) { // by the time buffers array is initialized, crypto is set if (portIndex == kPortIndexInput && mCrypto != NULL) { *buffer = info.mEncryptedData; } else { *buffer = info.mData; } *format = info.mFormat; } } Loading