Mercurial > libavcodec.hg
changeset 2258:7096bf7c3434 libavcodec
low resolution decoding fix
author | michael |
---|---|
date | Sun, 26 Sep 2004 09:00:37 +0000 |
parents | 5f64a30339e5 |
children | 12e75af1d44c |
files | mjpeg.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mjpeg.c Sun Sep 26 00:18:12 2004 +0000 +++ b/mjpeg.c Sun Sep 26 09:00:37 2004 +0000 @@ -1338,8 +1338,8 @@ } // dprintf("mb: %d %d processed\n", mb_y, mb_x); ptr = s->picture.data[c] + - (s->linesize[c] * (v * mb_y + y) * 8) + - (h * mb_x + x) * 8; + (((s->linesize[c] * (v * mb_y + y) * 8) + + (h * mb_x + x) * 8) >> s->avctx->lowres); if (s->interlaced && s->bottom_field) ptr += s->linesize[c] >> 1; //av_log(NULL, AV_LOG_DEBUG, "%d %d %d %d %d %d %d %d \n", mb_x, mb_y, x, y, c, s->bottom_field, (v * mb_y + y) * 8, (h * mb_x + x) * 8);