diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-09-25 23:18:58 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-09-25 23:18:58 +0000 |
commit | 178fcca84883bdbff02d5ae8eb7825bf884b40d8 (patch) | |
tree | daf6d857ef63cf0ad688acdadf1091732507b965 /libavcodec/mpeg12.c | |
parent | bc133816c03b32d722fa43cfe1d199a273fc65b4 (diff) | |
download | ffmpeg-178fcca84883bdbff02d5ae8eb7825bf884b40d8.tar.gz |
1/2 resolution decoding
Originally committed as revision 3507 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 7a76d55c66..484f6b278e 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -2409,6 +2409,7 @@ static int mpeg_decode_slice(Mpeg1Context *s1, int mb_y, AVCodecContext *avctx= s->avctx; int ret; const int field_pic= s->picture_structure != PICT_FRAME; + const int lowres= s->avctx->lowres; s->resync_mb_x= s->resync_mb_y= -1; @@ -2518,9 +2519,9 @@ static int mpeg_decode_slice(Mpeg1Context *s1, int mb_y, } } - s->dest[0] += 16; - s->dest[1] += 16 >> s->chroma_x_shift; - s->dest[2] += 16 >> s->chroma_x_shift; + s->dest[0] += 16 >> lowres; + s->dest[1] += 16 >> (s->chroma_x_shift + lowres); + s->dest[2] += 16 >> (s->chroma_x_shift + lowres); MPV_decode_mb(s, s->block); |