From: Fiona Glaser Date: Tue, 23 Feb 2010 09:44:44 +0000 (-0800) Subject: Fix stupid regression in interlaced in r1430 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=930d7c11f60dd5656302bfc97865eac0ffac921e;p=libx264 Fix stupid regression in interlaced in r1430 With ref > 8 or b-pyramid, an array over-read could cause slightly incorrect B-frames. --- 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 */