[Libva] [PATCH Intel-VA] Fix memset initialize for huff_co_table and huff_si_table array
Xiang, Haihao
haihao.xiang at intel.com
Sat Sep 5 22:13:52 PDT 2015
Applied.
Thanks
Haihao
> Signed-off-by: Lim Siew Hoon <siew.hoon.lim at intel.com>
> ---
> src/gen8_mfc.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/gen8_mfc.c b/src/gen8_mfc.c
> index e76db86..edf957b 100644
> --- a/src/gen8_mfc.c
> +++ b/src/gen8_mfc.c
> @@ -2880,8 +2880,8 @@ generate_ordered_codes_table(uint8_t *huff_vals, uint8_t *huff_size_table, uint1
> uint8_t huff_si_table[huff_val_size];
> uint16_t huff_co_table[huff_val_size];
>
> - memset(huff_si_table, 0, huff_val_size);
> - memset(huff_co_table, 0, huff_val_size);
> + memset(huff_si_table, 0, sizeof(huff_si_table));
> + memset(huff_co_table, 0, sizeof(huff_co_table));
>
> do {
> i = map_huffval_to_index(huff_vals[k]);
More information about the Libva
mailing list