# HG changeset patch # User michael # Date 1035845105 0 # Node ID 4d36307f12aabe41605fbbda50d2983529241193 # Parent f483ab704252ad25b39f089b11749b7d7be77caa fixing quant_store scaling diff -r f483ab704252 -r 4d36307f12aa libmpeg2/slice.c --- 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;