diff options
author | Marco Nelissen <marcone@google.com> | 2012-03-28 16:38:37 -0700 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2012-03-29 09:28:47 -0700 |
commit | cb5b766bb0a3ed992998a5bd66de0ee1d2223b81 (patch) | |
tree | e4d3d93e823d0c5c691549d9966f7660de1373df /media/libstagefright/OMXCodec.cpp | |
parent | 559bf2836f5da25b75bfb229fec0d20d540ee426 (diff) | |
download | frameworks_av-cb5b766bb0a3ed992998a5bd66de0ee1d2223b81.zip frameworks_av-cb5b766bb0a3ed992998a5bd66de0ee1d2223b81.tar.gz frameworks_av-cb5b766bb0a3ed992998a5bd66de0ee1d2223b81.tar.bz2 |
Add ABuffer support to SkipCutBuffer
Add support for ABuffer to SkipCutBuffer, and make it (re)allocate an
appropriately sized buffer when needed, rather then relying on the
caller to tell it ahead of time how big the buffers are going to be.
Change-Id: I8b5c9ba5dd2fc13ef8870b7d4fe93a1bfdc7a626
Diffstat (limited to 'media/libstagefright/OMXCodec.cpp')
-rwxr-xr-x | media/libstagefright/OMXCodec.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp index 9769f21..d9ad525 100755 --- a/media/libstagefright/OMXCodec.cpp +++ b/media/libstagefright/OMXCodec.cpp @@ -1605,8 +1605,7 @@ status_t OMXCodec::allocateBuffersOnPort(OMX_U32 portIndex) { } delete mSkipCutBuffer; } - mSkipCutBuffer = new SkipCutBuffer(delay * frameSize, padding * frameSize, - def.nBufferSize); + mSkipCutBuffer = new SkipCutBuffer(delay * frameSize, padding * frameSize); } } } |