diff options
author | Lajos Molnar <lajos@google.com> | 2014-03-07 02:26:02 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-07 02:26:02 +0000 |
commit | d224ee56ec8c2bc7963f43ca9d80cf31a3ba4c57 (patch) | |
tree | cf70efd46ddda93be4963a56d10f289625b90193 /media/libstagefright | |
parent | dd955ce438749bd138cdd3feae78545bc94881ee (diff) | |
parent | 7142d10a7a3941b2deb18869a7f7b79462e0aa52 (diff) | |
download | frameworks_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.cpp | 11 |
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; } |