diff options
author | Sunita Nadampalli <sunitan@ti.com> | 2011-04-13 17:24:34 -0500 |
---|---|---|
committer | Sunita Nadampalli <sunitan@ti.com> | 2011-04-13 17:24:34 -0500 |
commit | 52ae6892e68e001e3119815c36f22f8ec72840b3 (patch) | |
tree | 297f83c60e5e504d9267293cd0b47759be24584c | |
parent | c16971796659f855c6e989e68227504ca660aeb3 (diff) | |
download | base-52ae6892e68e001e3119815c36f22f8ec72840b3.tar.gz |
OMXCodec fix for buffer size calculation.
Description# When the video source meta data is maintained
separately for video frame w&h and buffer w&h, the buffer size should be
calculated from the padded height instead of the Video height.
This was missed out earlier, this patch corrects the buffer size calculation.
Change-Id: Idd46b71e050c2c3759b92330aa91aea52878591b
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
-rw-r--r-- | media/libstagefright/OMXCodec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp index 683fa371559b..6c036e67b976 100644 --- a/media/libstagefright/OMXCodec.cpp +++ b/media/libstagefright/OMXCodec.cpp @@ -2789,7 +2789,7 @@ status_t OMXCodec::allocateBuffersOnPort(OMX_U32 portIndex) { OMX_VIDEO_PORTDEFINITIONTYPE *videoDef = &def.format.video; int32_t padded_height; - if (!(mOutputFormat->findInt32(kKeyHeight, &padded_height))) { + if (!(mOutputFormat->findInt32(kKeyPaddedHeight, &padded_height))) { padded_height = videoDef->nFrameHeight; } |