Commit 2408a923 authored by Stéphane Borel's avatar Stéphane Borel

* Ajout d'un flag b_mpeg2 qui manquait dans le parser
* R��criture de fonctions d'initialisation du parseur
* Changement des fonctions MPEG2decode qui �taient bugg�es

 V�rification avec polux tout � l'heure
parent 4c1e4249
......@@ -72,7 +72,7 @@ typedef struct vpar_thread_s
/* variable length codes for the structure dct_dc_size for intra blocks */
lookup_t pppl_dct_dc_size[2][2][32];
/* structure to store the tables B14 & B15 */
dct_lookup_t *ppl_dct_coef[11];
dct_lookup_t * pppl_dct_coef[2][65536];
#ifdef STATS
/* Statistics */
......
This diff is collapsed.
......@@ -392,6 +392,9 @@ static void SequenceHeader( vpar_thread_t * p_vpar )
static f_chroma_pattern_t ppf_chroma_pattern[4] =
{NULL, vpar_CodedPattern420,
vpar_CodedPattern422, vpar_CodedPattern444};
/* Turn the MPEG2 flag on */
p_vpar->sequence.b_mpeg2 = 1;
/* Parse sequence_extension */
DumpBits32( &p_vpar->bit_stream );
......@@ -416,6 +419,8 @@ static void SequenceHeader( vpar_thread_t * p_vpar )
else
{
/* It's an MPEG-1 stream. Put adequate parameters. */
p_vpar->sequence.b_mpeg2 = 0;
p_vpar->sequence.b_progressive = 1;
p_vpar->sequence.i_chroma_format = CHROMA_420;
p_vpar->sequence.pf_decode_pattern = vpar_CodedPattern420;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment