diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-28 21:46:57 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-28 22:05:24 +0100 |
commit | 7e5cbb3c2d96c27d526aa69cbdbd1ab23739d7e5 (patch) | |
tree | 799ac7d386a8a458b4fd4c3ab12d6a5c5f8886d0 /libavcodec | |
parent | 92e2b59dec8c0124a209ce24f23450df9607d9d8 (diff) | |
download | ffmpeg-7e5cbb3c2d96c27d526aa69cbdbd1ab23739d7e5.tar.gz |
cljrdec: improve scaling somewhat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/cljr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/cljr.c b/libavcodec/cljr.c index daa13e534a..4027cff4c7 100644 --- a/libavcodec/cljr.c +++ b/libavcodec/cljr.c @@ -87,10 +87,10 @@ static int decode_frame(AVCodecContext *avctx, uint8_t *cb = &a->picture.data[1][y * a->picture.linesize[1]]; uint8_t *cr = &a->picture.data[2][y * a->picture.linesize[2]]; for (x = 0; x < avctx->width; x += 4) { - luma[3] = get_bits(&gb, 5) << 3; - luma[2] = get_bits(&gb, 5) << 3; - luma[1] = get_bits(&gb, 5) << 3; - luma[0] = get_bits(&gb, 5) << 3; + luma[3] = (get_bits(&gb, 5)*33) >> 2; + luma[2] = (get_bits(&gb, 5)*33) >> 2; + luma[1] = (get_bits(&gb, 5)*33) >> 2; + luma[0] = (get_bits(&gb, 5)*33) >> 2; luma += 4; *(cb++) = get_bits(&gb, 6) << 2; *(cr++) = get_bits(&gb, 6) << 2; |