diff options
author | Andy Hung <hunga@google.com> | 2014-05-02 11:05:04 -0700 |
---|---|---|
committer | Andy Hung <hunga@google.com> | 2014-05-14 16:43:03 -0700 |
commit | 609b815a3131d22da38b2f452faa9f89daad4039 (patch) | |
tree | 16645cc8f518457029ff97cbcdc837599846a076 /media/libstagefright/MediaCodec.cpp | |
parent | 021cf9634ab09c0753a40b7c9ef4ba603be5c3da (diff) | |
download | frameworks_av-609b815a3131d22da38b2f452faa9f89daad4039.zip frameworks_av-609b815a3131d22da38b2f452faa9f89daad4039.tar.gz frameworks_av-609b815a3131d22da38b2f452faa9f89daad4039.tar.bz2 |
Update OMX messages for 64 bit
Change node_id and buffer_id to uint32_t.
Ensure IOMX messages are fixed size.
Remove 64 bit compile warnings in associated files.
Change-Id: Icdbef00aca575e5dc502ebb52e3ce7d0d7883203
Signed-off-by: Andy Hung <hunga@google.com>
Diffstat (limited to 'media/libstagefright/MediaCodec.cpp')
-rw-r--r-- | media/libstagefright/MediaCodec.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/MediaCodec.cpp b/media/libstagefright/MediaCodec.cpp index 5b525f2..d8a8380 100644 --- a/media/libstagefright/MediaCodec.cpp +++ b/media/libstagefright/MediaCodec.cpp @@ -1555,8 +1555,8 @@ size_t MediaCodec::updateBuffers( int32_t portIndex, const sp<AMessage> &msg) { CHECK(portIndex == kPortIndexInput || portIndex == kPortIndexOutput); - void *bufferID; - CHECK(msg->findPointer("buffer-id", &bufferID)); + uint32_t bufferID; + CHECK(msg->findInt32("buffer-id", (int32_t*)&bufferID)); Vector<BufferInfo> *buffers = &mPortBuffers[portIndex]; |