summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/ACodec.cpp
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2015-11-05 02:43:05 -0800
committerSteve Kondik <steve@cyngn.com>2015-11-05 02:43:05 -0800
commit2848080cc0182847cb2130cba1a59282db88bce0 (patch)
tree5a16c92473e7a8dd3d5d44bec29ed6e7b4fb8b04 /media/libstagefright/ACodec.cpp
parent6b4318a6242c6d65ff2b5b88eebcb7e99a8f78ee (diff)
downloadframeworks_av-2848080cc0182847cb2130cba1a59282db88bce0.zip
frameworks_av-2848080cc0182847cb2130cba1a59282db88bce0.tar.gz
frameworks_av-2848080cc0182847cb2130cba1a59282db88bce0.tar.bz2
stagefright: Unbreak video encoding
* Fix logic for the FFMPEG video case- we should have only been checking for errors when actually calling into our extension. Change-Id: Ic9fa6ad3913f259c09f0dd37b1720d996ecc386c
Diffstat (limited to 'media/libstagefright/ACodec.cpp')
-rw-r--r--media/libstagefright/ACodec.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp
index 83954f9..a81bca5 100644
--- a/media/libstagefright/ACodec.cpp
+++ b/media/libstagefright/ACodec.cpp
@@ -4187,9 +4187,9 @@ status_t ACodec::getPortFormat(OMX_U32 portIndex, sp<AMessage> &notify) {
if (!strncmp(mComponentName.c_str(), "OMX.ffmpeg.", 11)) {
err = FFMPEGSoftCodec::getVideoPortFormat(portIndex,
(int)videoDef->eCompressionFormat, notify, mOMX, mNode);
- }
- if (err == OK) {
- break;
+ if (err == OK) {
+ break;
+ }
}
if (mIsEncoder ^ (portIndex == kPortIndexOutput)) {