summaryrefslogtreecommitdiffstats
path: root/libmpeg2
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-28 22:45:05 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-28 22:45:05 +0000
commit3357a615d4be386ae6ee3cf11343a8867cd7a099 (patch)
tree1eb8a2ebe4029e176282a3c13f7aba5fd7ce6c1e /libmpeg2
parent2d28fdd64cf1aef1a80d87c124f9f60a277391b0 (diff)
downloadmpv-3357a615d4be386ae6ee3cf11343a8867cd7a099.tar.bz2
mpv-3357a615d4be386ae6ee3cf11343a8867cd7a099.tar.xz
fixing quant_store scaling
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7948 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpeg2')
-rw-r--r--libmpeg2/slice.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpeg2/slice.c b/libmpeg2/slice.c
index 2fdeb48375..4e289f0d06 100644
--- a/libmpeg2/slice.c
+++ b/libmpeg2/slice.c
@@ -1753,7 +1753,7 @@ int slice_process (picture_t * picture, uint8_t code, uint8_t * buffer)
}
#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 @@ int slice_process (picture_t * picture, uint8_t code, uint8_t * buffer)
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 @@ int slice_process (picture_t * picture, uint8_t code, uint8_t * buffer)
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;