am 903fc221: Ignore errors from correction parameter query and config for M4v and H263 encoders

Merge commit '903fc221068d02bdb53ba2a48f86339caf405259' into gingerbread-plus-aosp

* commit '903fc221068d02bdb53ba2a48f86339caf405259':
  Ignore errors from correction parameter query and config for M4v and H263 encoders
This commit is contained in:
James Dong
2010-09-23 10:21:26 -07:00
committed by Android Git Automerger

View File

@@ -980,7 +980,10 @@ status_t OMXCodec::setupErrorCorrectionParameters() {
status_t err = mOMX->getParameter( status_t err = mOMX->getParameter(
mNode, OMX_IndexParamVideoErrorCorrection, mNode, OMX_IndexParamVideoErrorCorrection,
&errorCorrectionType, sizeof(errorCorrectionType)); &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.bEnableHEC = OMX_FALSE;
errorCorrectionType.bEnableResync = OMX_TRUE; errorCorrectionType.bEnableResync = OMX_TRUE;
@@ -991,7 +994,11 @@ status_t OMXCodec::setupErrorCorrectionParameters() {
err = mOMX->setParameter( err = mOMX->setParameter(
mNode, OMX_IndexParamVideoErrorCorrection, mNode, OMX_IndexParamVideoErrorCorrection,
&errorCorrectionType, sizeof(errorCorrectionType)); &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; return OK;
} }