Commit cc48b556 by jschlag Committed by Oliver Woodman

handle errors from vpx_codec_control_ calls in vpx_jni

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=187872692
parent 8c24184f
Showing with 5 additions and 1 deletions
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment