From: Laurent Aimar Date: Fri, 22 Jul 2005 15:43:16 +0000 (+0000) Subject: analyse: "It correct the size of array i_mb_b16x8_cost_table X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=d2715116f9ef8d96d78e81010eda7fdee83cc212;p=x264.git analyse: "It correct the size of array i_mb_b16x8_cost_table from 16 to 17,otherwise,it can result a mismatch of b16x8 mb type cost and can result memory read overflow on it." Patch by lurui. git-svn-id: svn://svn.videolan.org/x264/trunk@278 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/encoder/analyse.c b/encoder/analyse.c index 959abb66..4740759a 100644 --- a/encoder/analyse.c +++ b/encoder/analyse.c @@ -152,8 +152,8 @@ static const uint8_t block_idx_y[16] = { static const int i_mb_b_cost_table[19] = { 9, 9, 9, 9, 0, 0, 0, 1, 3, 7, 7, 7, 3, 7, 7, 7, 5, 9, 0 }; -static const int i_mb_b16x8_cost_table[16] = { - 0, 0, 0, 0, 0, 0, 0, 5, 7, 7, 7, 5, 7, 9, 9, 9 +static const int i_mb_b16x8_cost_table[17] = { + 0, 0, 0, 0, 0, 0, 0, 5, 7, 7, 7, 5, 7, 9, 9, 9, 9 }; static const int i_sub_mb_b_cost_table[13] = { 7, 5, 5, 3, 7, 5, 7, 3, 7, 7, 7, 5, 1