diff options
author | Martin Storsjo <martin@martin.st> | 2013-08-10 23:13:30 +0300 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2013-11-25 13:09:41 +0200 |
commit | 0d572ff9d743afcc8422c6a161af095a9541b510 (patch) | |
tree | 56fca41e8f58e6a34242fd9d27272879d18a92b3 /media | |
parent | 5bf2560ce9b70bee077e0c264ac06648f0f63acc (diff) | |
download | frameworks_av-0d572ff9d743afcc8422c6a161af095a9541b510.zip frameworks_av-0d572ff9d743afcc8422c6a161af095a9541b510.tar.gz frameworks_av-0d572ff9d743afcc8422c6a161af095a9541b510.tar.bz2 |
SoftVPXEncoder: Set the frame size on the output port as well
This makes sure the MediaCodec output MediaFormat contains
the right width and height.
Change-Id: Ic97af3b5850ebaf563533c3d1cae992be3e4d074
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/codecs/on2/enc/SoftVPXEncoder.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/media/libstagefright/codecs/on2/enc/SoftVPXEncoder.cpp b/media/libstagefright/codecs/on2/enc/SoftVPXEncoder.cpp index 8375cac..5efe022 100644 --- a/media/libstagefright/codecs/on2/enc/SoftVPXEncoder.cpp +++ b/media/libstagefright/codecs/on2/enc/SoftVPXEncoder.cpp @@ -677,6 +677,9 @@ OMX_ERRORTYPE SoftVPXEncoder::internalSetPortParams( def->format.video.nFrameHeight = mHeight; def->format.video.xFramerate = port->format.video.xFramerate; def->format.video.eColorFormat = mColorFormat; + def = &editPortInfo(kOutputPortIndex)->mDef; + def->format.video.nFrameWidth = mWidth; + def->format.video.nFrameHeight = mHeight; return OMX_ErrorNone; } else if (port->nPortIndex == kOutputPortIndex) { |