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
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp
index 48ffbfa..d3be547 100644
--- a/media/libstagefright/ACodec.cpp
+++ b/media/libstagefright/ACodec.cpp
@@ -4191,9 +4191,9 @@
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)) {