diff libmpeg2/slice.c @ 7947:4d36307f12aa

fixing quant_store scaling
author michael
date Mon, 28 Oct 2002 22:45:05 +0000
parents 0cdc1388f02f
children 47984e3f54ce
line wrap: on
line diff
--- a/libmpeg2/slice.c	Mon Oct 28 19:31:04 2002 +0000
+++ b/libmpeg2/slice.c	Mon Oct 28 22:45:05 2002 +0000
@@ -1753,7 +1753,7 @@
 	}
 
 #ifdef MPEG12_POSTPROC
-	picture->current_frame->quant_store[code][(offset>>4)+1] = picture->quantizer_scale;
+	picture->current_frame->quant_store[code][(offset>>4)+1] = picture->quantizer_scale>>1;
 #endif
 	offset += 16;
 	CHECK_DISPLAY;
@@ -1785,7 +1785,7 @@
 			MOTION (motion_fi_zero, MACROBLOCK_MOTION_FORWARD);
 
 #ifdef MPEG12_POSTPROC
-	picture->current_frame->quant_store[code][(offset>>4)+1] = picture->quantizer_scale;
+	picture->current_frame->quant_store[code][(offset>>4)+1] = picture->quantizer_scale>>1;
 #endif
 
 		    offset += 16;
@@ -1801,7 +1801,7 @@
 			MOTION (motion_fi_reuse, macroblock_modes);
 
 #ifdef MPEG12_POSTPROC
-	picture->current_frame->quant_store[code][(offset>>4)+1] = picture->quantizer_scale;
+	picture->current_frame->quant_store[code][(offset>>4)+1] = picture->quantizer_scale>>1;
 #endif
 
 		    offset += 16;