changeset 20640:c52bb8d6edea

update for r20654
author henry
date Sat, 04 Nov 2006 07:14:50 +0000
parents 2a2f3db46103
children 2155f45d58c2
files libmpeg2/libmpeg-0.4.0.diff
diffstat 1 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpeg2/libmpeg-0.4.0.diff	Sat Nov 04 07:08:54 2006 +0000
+++ b/libmpeg2/libmpeg-0.4.0.diff	Sat Nov 04 07:14:50 2006 +0000
@@ -377,13 +377,22 @@
  
      decoder->quantizer_matrix[0] =
  	decoder->quantizer_prescale[0][quantizer_scale_code];
-@@ -1564,6 +1569,9 @@
+@@ -1568,6 +1569,18 @@
  
  #define NEXT_MACROBLOCK							\
  do {									\
-+    if(decoder->quant_store)                                            \
++    if(decoder->quant_store) {                                          \
++       if (decoder->picture_structure == TOP_FIELD)                     \
++        decoder->quant_store[2*decoder->quant_stride*(decoder->v_offset>>4) \
++                    +(decoder->offset>>4)] = decoder->quantizer_scale;  \
++       else if (decoder->picture_structure == BOTTOM_FIELD)             \
++        decoder->quant_store[2*decoder->quant_stride*(decoder->v_offset>>4) \
++	            + decoder->quant_stride                             \
++                    +(decoder->offset>>4)] = decoder->quantizer_scale;  \
++       else                                                             \
 +        decoder->quant_store[decoder->quant_stride*(decoder->v_offset>>4) \
 +                    +(decoder->offset>>4)] = decoder->quantizer_scale;  \
++    }                                                                   \
      decoder->offset += 16;						\
      if (decoder->offset == decoder->width) {				\
  	do { /* just so we can use the break statement */		\