]> git.sesse.net Git - vlc/commitdiff
* Correction du Bug introduit lors de mon commit.
authorStéphane Borel <stef@videolan.org>
Mon, 13 Mar 2000 21:55:07 +0000 (21:55 +0000)
committerStéphane Borel <stef@videolan.org>
Mon, 13 Mar 2000 21:55:07 +0000 (21:55 +0000)
Chez moi, �a marche avec Taxi, Matrix et la ba de twine.

src/video_parser/vpar_blocks.c

index a7afb3bcf9194016c0d219d64627a40c991d7f38..0794c6aee5f292c0d19623c210bc48f812c7f925 100644 (file)
@@ -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;