[Mplayer-cvslog] CVS: main/libmpeg2 header.c, 1.16, 1.17 mpeg2_internal.h, 1.19, 1.20 slice.c, 1.12, 1.13
Jindrich Makovicka CVS
syncmail at mplayerhq.hu
Tue Aug 24 22:23:14 CEST 2004
CVS change done by Jindrich Makovicka CVS
Update of /cvsroot/mplayer/main/libmpeg2
In directory mail:/var2/tmp/cvs-serv5638
Modified Files:
header.c mpeg2_internal.h slice.c
Log Message:
postproc fix
Index: header.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpeg2/header.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- header.c 2 Aug 2004 13:09:17 -0000 1.16
+++ header.c 24 Aug 2004 20:23:11 -0000 1.17
@@ -803,7 +803,7 @@
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];
Index: mpeg2_internal.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpeg2/mpeg2_internal.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- mpeg2_internal.h 24 Aug 2004 16:15:56 -0000 1.19
+++ mpeg2_internal.h 24 Aug 2004 20:23:11 -0000 1.20
@@ -146,6 +146,7 @@
int mpeg1;
/* for MPlayer: */
+ int quantizer_scales[32];
int quantizer_scale;
char* quant_store;
int quant_stride;
Index: slice.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpeg2/slice.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- slice.c 2 Aug 2004 13:09:17 -0000 1.12
+++ slice.c 24 Aug 2004 20:23:11 -0000 1.13
@@ -142,6 +142,7 @@
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];
More information about the MPlayer-cvslog
mailing list