| Index: media/base/android/sdk_media_codec_bridge.h
|
| diff --git a/media/base/android/sdk_media_codec_bridge.h b/media/base/android/sdk_media_codec_bridge.h
|
| index 1984a3a1b7d481b0b5dad3ffd1d095899d27e7ad..5c47d949ae49c78bc32d776b1a546cc3a51929d1 100644
|
| --- a/media/base/android/sdk_media_codec_bridge.h
|
| +++ b/media/base/android/sdk_media_codec_bridge.h
|
| @@ -64,10 +64,10 @@
|
| MediaCodecStatus GetInputBuffer(int input_buffer_index,
|
| uint8_t** data,
|
| size_t* capacity) override;
|
| - MediaCodecStatus GetOutputBufferAddress(int index,
|
| - size_t offset,
|
| - const uint8_t** addr,
|
| - size_t* capacity) override;
|
| + MediaCodecStatus CopyFromOutputBuffer(int index,
|
| + size_t offset,
|
| + void* dst,
|
| + size_t num) override;
|
|
|
| static bool RegisterSdkMediaCodecBridge(JNIEnv* env);
|
|
|
| @@ -76,6 +76,14 @@
|
| bool is_secure,
|
| MediaCodecDirection direction);
|
|
|
| + // Called to get the buffer address given the output buffer index and offset.
|
| + // The size of available data to read is written to |*capacity| and the
|
| + // address to read from is written to |*addr|.
|
| + // Returns MEDIA_CODEC_ERROR if a error occurs, or MEDIA_CODEC_OK otherwise.
|
| + MediaCodecStatus GetOutputBufferAddress(int index,
|
| + size_t offset,
|
| + void** addr,
|
| + size_t* capacity);
|
|
|
| jobject media_codec() { return j_media_codec_.obj(); }
|
| MediaCodecDirection direction_;
|
|
|