handle errors from vpx_codec_control_ calls in vpx_jni

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=187872692
This commit is contained in:
jschlag 2018-03-05 08:54:42 -08:00 committed by Oliver Woodman
parent 8c24184f8b
commit cc48b5568c

View File

@ -295,7 +295,11 @@ DECODER_FUNC(jlong, vpxInit, jboolean disableLoopFilter) {
return 0;
}
if (disableLoopFilter) {
vpx_codec_control_(context, VP9_SET_SKIP_LOOP_FILTER, true);
// TODO(b/71930387): Use vpx_codec_control(), not vpx_codec_control_().
err = vpx_codec_control_(context, VP9_SET_SKIP_LOOP_FILTER, true);
if (err) {
LOGE("ERROR: Failed to shut off libvpx loop filter, error = %d.", err);
}
}
// Populate JNI References.