summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/codecs
diff options
context:
space:
mode:
authorLajos Molnar <lajos@google.com>2014-02-10 17:50:33 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-02-10 17:50:33 +0000
commitaf8a3e29422ec5de5e7f8befbc5253e68729a654 (patch)
tree0ec22053dd81a3d166cba839476a4664a6ca943e /media/libstagefright/codecs
parentd2b566f34483882648a07bb6f46c3c1b0a2f5306 (diff)
parent7142d10a7a3941b2deb18869a7f7b79462e0aa52 (diff)
downloadframeworks_av-af8a3e29422ec5de5e7f8befbc5253e68729a654.zip
frameworks_av-af8a3e29422ec5de5e7f8befbc5253e68729a654.tar.gz
frameworks_av-af8a3e29422ec5de5e7f8befbc5253e68729a654.tar.bz2
am 7142d10a: Merge "avcenc: Update video port parameters in the base class"
* commit '7142d10a7a3941b2deb18869a7f7b79462e0aa52': avcenc: Update video port parameters in the base class
Diffstat (limited to 'media/libstagefright/codecs')
-rw-r--r--media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp b/media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp
index 4a21a3e..1d398fb 100644
--- a/media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp
+++ b/media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp
@@ -593,6 +593,17 @@ OMX_ERRORTYPE SoftAVCEncoder::internalSetParameter(
mVideoHeight = def->format.video.nFrameHeight;
mVideoFrameRate = def->format.video.xFramerate >> 16;
mVideoColorFormat = def->format.video.eColorFormat;
+
+ OMX_PARAM_PORTDEFINITIONTYPE *portDef =
+ &editPortInfo(0)->mDef;
+ portDef->format.video.nFrameWidth = mVideoWidth;
+ portDef->format.video.nFrameHeight = mVideoHeight;
+ portDef->format.video.xFramerate = def->format.video.xFramerate;
+ portDef->format.video.eColorFormat =
+ (OMX_COLOR_FORMATTYPE) mVideoColorFormat;
+ portDef = &editPortInfo(1)->mDef;
+ portDef->format.video.nFrameWidth = mVideoWidth;
+ portDef->format.video.nFrameHeight = mVideoHeight;
} else {
mVideoBitRate = def->format.video.nBitrate;
}