Mercurial > libavcodec.hg
diff mpeg12.c @ 2256:7e0b2e86afa9 libavcodec
1/2 resolution decoding
| author | michael |
|---|---|
| date | Sat, 25 Sep 2004 23:18:58 +0000 |
| parents | 9b6eb06cc184 |
| children | bd09f4d1976f |
line wrap: on
line diff
--- a/mpeg12.c Sat Sep 25 10:06:31 2004 +0000 +++ b/mpeg12.c Sat Sep 25 23:18:58 2004 +0000 @@ -2409,6 +2409,7 @@ 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 @@ } } - 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);
