summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/OMXCodec.cpp
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-09-23 10:28:21 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-23 10:28:21 -0700
commit45adaf601ea69f8bd060c8a219e1ccf7045bbfa4 (patch)
tree8347e9db22517c64ed68edbf5a2ed587d916193a /media/libstagefright/OMXCodec.cpp
parent8872633927679cfeb77948ba7b562e07e899ef91 (diff)
parent5257d874dd68bf67b75c316f44e32e18ede0b469 (diff)
downloadframeworks_av-45adaf601ea69f8bd060c8a219e1ccf7045bbfa4.zip
frameworks_av-45adaf601ea69f8bd060c8a219e1ccf7045bbfa4.tar.gz
frameworks_av-45adaf601ea69f8bd060c8a219e1ccf7045bbfa4.tar.bz2
am 693a430c: am 903fc221: Ignore errors from correction parameter query and config for M4v and H263 encoders
Merge commit '693a430cff3c9fac503b5005e9fd5419611eddde' * commit '693a430cff3c9fac503b5005e9fd5419611eddde': Ignore errors from correction parameter query and config for M4v and H263 encoders
Diffstat (limited to 'media/libstagefright/OMXCodec.cpp')
-rw-r--r--media/libstagefright/OMXCodec.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index ccb614c..7a29bd2 100644
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -999,7 +999,10 @@ status_t OMXCodec::setupErrorCorrectionParameters() {
status_t err = mOMX->getParameter(
mNode, OMX_IndexParamVideoErrorCorrection,
&errorCorrectionType, sizeof(errorCorrectionType));
- CHECK_EQ(err, OK);
+ if (err != OK) {
+ LOGW("Error correction param query is not supported");
+ return OK; // Optional feature. Ignore this failure
+ }
errorCorrectionType.bEnableHEC = OMX_FALSE;
errorCorrectionType.bEnableResync = OMX_TRUE;
@@ -1010,7 +1013,11 @@ status_t OMXCodec::setupErrorCorrectionParameters() {
err = mOMX->setParameter(
mNode, OMX_IndexParamVideoErrorCorrection,
&errorCorrectionType, sizeof(errorCorrectionType));
- CHECK_EQ(err, OK);
+ if (err != OK) {
+ LOGW("Error correction param configuration is not supported");
+ }
+
+ // Optional feature. Ignore the failure.
return OK;
}