summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorKrishnankutty Kolathappilly <kolath@codeaurora.org>2010-08-09 18:10:51 -0700
committerSteve Kondik <shade@chemlab.org>2010-08-23 23:56:18 -0400
commitf51d2954ac1baa0a1e885871bbfdd73ba603e24b (patch)
treeac74f304984c323f3ad8fb5d4231f7567a5a24b3 /media
parente716ae55d730cfecfb3612fded68057cc1fcdc7e (diff)
downloadframeworks_base-f51d2954ac1baa0a1e885871bbfdd73ba603e24b.zip
frameworks_base-f51d2954ac1baa0a1e885871bbfdd73ba603e24b.tar.gz
frameworks_base-f51d2954ac1baa0a1e885871bbfdd73ba603e24b.tar.bz2
libstagefright : Update decode width and height with stride and slice height
-Update decode width and height with stride and slice height from the OMX component. -In case of clips with dimensions that are not multiples of 16, OMX component issues a port reconfiguration to notify change in stride and slice height. -If this is not updated in stagefright, renderer gets created with wrong parameters resulting in a green line on top of video. Change-Id: I426ac593516937fb994144dfa52d7d7a962d3a9b CRs-Fixed:246638
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/OMXCodec.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index d88639e..6f0654d 100644
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -2999,8 +2999,10 @@ void OMXCodec::initOutputFormat(const sp<MetaData> &inputFormat) {
mOutputFormat->setInt32(
kKeyHeight, (video_def->nFrameHeight + 15) & -16);
} else {
- mOutputFormat->setInt32(kKeyWidth, video_def->nFrameWidth);
- mOutputFormat->setInt32(kKeyHeight, video_def->nFrameHeight);
+ //Update the Stride and Slice Height
+ //Allows creation of Renderer with correct height and width
+ mOutputFormat->setInt32(kKeyWidth, video_def->nStride);
+ mOutputFormat->setInt32(kKeyHeight, video_def->nSliceHeight);
}
mOutputFormat->setInt32(kKeyColorFormat, video_def->eColorFormat);