Commit 97a2c675 authored by James Zern's avatar James Zern Committed by Gerrit Code Review
Browse files

Merge "rdopt,global-motion: Fix -1 indexing ubsan warning" into nextgenv2

parents 5cb72a2d 182953b2
...@@ -9424,7 +9424,10 @@ PALETTE_EXIT: ...@@ -9424,7 +9424,10 @@ PALETTE_EXIT:
#endif // CONFIG_REF_MV #endif // CONFIG_REF_MV
#if CONFIG_GLOBAL_MOTION #if CONFIG_GLOBAL_MOTION
zeromv[0].as_int = cm->global_motion[refs[0]].motion_params.wmmat[0].as_int; zeromv[0].as_int = cm->global_motion[refs[0]].motion_params.wmmat[0].as_int;
zeromv[1].as_int = cm->global_motion[refs[1]].motion_params.wmmat[0].as_int; if (comp_pred_mode) {
zeromv[1].as_int =
cm->global_motion[refs[1]].motion_params.wmmat[0].as_int;
}
#else #else
zeromv[0].as_int = 0; zeromv[0].as_int = 0;
zeromv[1].as_int = 0; zeromv[1].as_int = 0;
......
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 to comment