summaryrefslogtreecommitdiffstats
path: root/media/libstagefright
diff options
context:
space:
mode:
authorLajos Molnar <lajos@google.com>2014-03-07 02:26:02 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-07 02:26:02 +0000
commitd224ee56ec8c2bc7963f43ca9d80cf31a3ba4c57 (patch)
treecf70efd46ddda93be4963a56d10f289625b90193 /media/libstagefright
parentdd955ce438749bd138cdd3feae78545bc94881ee (diff)
parent7142d10a7a3941b2deb18869a7f7b79462e0aa52 (diff)
downloadframeworks_av-d224ee56ec8c2bc7963f43ca9d80cf31a3ba4c57.zip
frameworks_av-d224ee56ec8c2bc7963f43ca9d80cf31a3ba4c57.tar.gz
frameworks_av-d224ee56ec8c2bc7963f43ca9d80cf31a3ba4c57.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')
-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;
}