!3526 音频DTFuzz用例修改

Merge pull request !3526 from 韩琦/master
This commit is contained in:
openharmony_ci 2024-09-27 10:53:56 +00:00 committed by Gitee
commit bc96ed0fd2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 8 additions and 2 deletions

View File

@ -634,7 +634,10 @@ bool AEncDemoAuto::RunCase(const uint8_t *data, size_t size)
<< " ms" << std::endl;
DEMO_CHECK_AND_RETURN_RET_LOG(Stop() == AVCS_ERR_OK, false, "Fatal: Stop fail");
DEMO_CHECK_AND_RETURN_RET_LOG(Release() == AVCS_ERR_OK, false, "Fatal: Release fail");
DEMO_CHECK_AND_RETURN_RET_LOG(Destroy(audioEnc_) == AV_ERR_OK, false, "Fatal: Destroy fail");
if (format != nullptr) {
OH_AVFormat_Destroy(format);
format = nullptr;
}
sleep(1);
return true;
}

View File

@ -644,7 +644,10 @@ bool AEncDemoAuto::RunCaseDescription(const uint8_t *data, size_t size)
}
DEMO_CHECK_AND_RETURN_RET_LOG(Stop() == AVCS_ERR_OK, false, "Fatal: Stop fail");
DEMO_CHECK_AND_RETURN_RET_LOG(Release() == AVCS_ERR_OK, false, "Fatal: Release fail");
DEMO_CHECK_AND_RETURN_RET_LOG(Destroy(audioEnc_) == AV_ERR_OK, false, "Fatal: Destroy fail");
if (format != nullptr) {
OH_AVFormat_Destroy(format);
format = nullptr;
}
sleep(1);
return true;
}