With ref > 8 or b-pyramid, an array over-read could cause slightly incorrect B-frames.
int i_chroma_lambda2_offset;
/* B_direct and weighted prediction */
- int16_t dist_scale_factor_buf[2][16][2];
- int16_t (*dist_scale_factor)[2];
+ int16_t dist_scale_factor_buf[2][32][4];
+ int16_t (*dist_scale_factor)[4];
int8_t bipred_weight_buf[2][32][4];
int8_t (*bipred_weight)[4];
/* maps fref1[0]'s ref indices into the current list0 */