summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-09-22 17:37:42 -0700
committerJames Dong <jdong@google.com>2010-09-23 10:12:45 -0700
commit59f63db5d1cdc91336a2b82e195e0000091cd6e3 (patch)
tree3581231507eab89595979a6b986e4dcfe34f864d /media
parent97e0fcc0cb69692a6c518e2bfaf9892a164e7f58 (diff)
downloadframeworks_av-59f63db5d1cdc91336a2b82e195e0000091cd6e3.zip
frameworks_av-59f63db5d1cdc91336a2b82e195e0000091cd6e3.tar.gz
frameworks_av-59f63db5d1cdc91336a2b82e195e0000091cd6e3.tar.bz2
Ignore errors from correction parameter query and config for M4v and H263 encoders
This feature is not essential for camcorder application Change-Id: Id560632207dcf24fe361280ebe8178ea7332f22d
Diffstat (limited to 'media')
-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 ac0db18..76c8870 100644
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -980,7 +980,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;
@@ -991,7 +994,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;
}