summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);