From 930d7c11f60dd5656302bfc97865eac0ffac921e Mon Sep 17 00:00:00 2001 From: Fiona Glaser Date: Tue, 23 Feb 2010 01:44:44 -0800 Subject: [PATCH] Fix stupid regression in interlaced in r1430 With ref > 8 or b-pyramid, an array over-read could cause slightly incorrect B-frames. --- common/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/common.h b/common/common.h index e2e8facb..906af519 100644 --- a/common/common.h +++ b/common/common.h @@ -654,8 +654,8 @@ struct x264_t 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 */ -- 2.40.0