postproc fix

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13124 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
henry 2004-08-24 20:23:11 +00:00
parent ba0fc01e35
commit 2b5bf19dfd
3 changed files with 3 additions and 1 deletions

View File

@ -803,7 +803,7 @@ static void prescale (mpeg2dec_t * mpeg2dec, int index)
mpeg2dec->scaled[index] = mpeg2dec->q_scale_type;
for (i = 0; i < 32; i++) {
k = mpeg2dec->q_scale_type ? non_linear_scale[i] : (i << 1);
decoder->quantizer_scale = k;
decoder->quantizer_scales[i] = k;
for (j = 0; j < 64; j++)
decoder->quantizer_prescale[index][i][j] =
k * mpeg2dec->quantizer_matrix[index][j];

View File

@ -146,6 +146,7 @@ struct mpeg2_decoder_s {
int mpeg1;
/* for MPlayer: */
int quantizer_scales[32];
int quantizer_scale;
char* quant_store;
int quant_stride;

View File

@ -142,6 +142,7 @@ static inline void get_quantizer_scale (mpeg2_decoder_t * const decoder)
quantizer_scale_code = UBITS (bit_buf, 5);
DUMPBITS (bit_buf, bits, 5);
decoder->quantizer_scale = decoder->quantizer_scales[quantizer_scale_code];
decoder->quantizer_matrix[0] =
decoder->quantizer_prescale[0][quantizer_scale_code];