From abe1132d5ad3ab1addc2bf17293fadc4102f177e Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Borel?= Date: Mon, 13 Mar 2000 21:55:07 +0000 Subject: [PATCH] * Correction du Bug introduit lors de mon commit. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Chez moi, �a marche avec Taxi, Matrix et la ba de twine. --- src/video_parser/vpar_blocks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video_parser/vpar_blocks.c b/src/video_parser/vpar_blocks.c index a7afb3bcf9..0794c6aee5 100644 --- a/src/video_parser/vpar_blocks.c +++ b/src/video_parser/vpar_blocks.c @@ -397,7 +397,7 @@ static dct_lookup_t pl_DCT_tab6[16] = /* Pointers on tables of dct coefficients */ static dct_lookup_t * ppl_dct_tab1[2] = { pl_DCT_tab_ac, pl_DCT_tab0a }; -static dct_lookup_t * ppl_dct_tab2[2] = { pl_DCT_tab_dc, pl_DCT_tab_ac }; +static dct_lookup_t * ppl_dct_tab2[2] = { pl_DCT_tab_ac, pl_DCT_tab_dc }; /* Lookup Table for the chromatic component */ @@ -920,7 +920,7 @@ static __inline__ void DecodeMPEG2NonIntra( vpar_thread_t * p_vpar, i_code = ShowBits( &p_vpar->bit_stream, 16 ); if( i_code >= 16384 ) { - b_dc = !((i_parse + 62)/63); + b_dc = (i_parse == 0); i_run = ppl_dct_tab2[b_dc][(i_code>>12)-4].i_run; i_level = ppl_dct_tab2[b_dc][(i_code>>12)-4].i_level; i_length = ppl_dct_tab2[b_dc][(i_code>>12)-4].i_length; -- 2.39.2