Mercurial > libavcodec.hg
diff huffyuv.c @ 1368:0fd38b711f06 libavcodec
AVCodec.flush()
ff_draw_horiz_band() in coded order / cleanup
author | michaelni |
---|---|
date | Thu, 17 Jul 2003 12:29:07 +0000 |
parents | 1cbc2380d172 |
children | 45d761c387cd |
line wrap: on
line diff
--- a/huffyuv.c Wed Jul 16 18:20:46 2003 +0000 +++ b/huffyuv.c Thu Jul 17 12:29:07 2003 +0000 @@ -673,7 +673,7 @@ static void draw_slice(HYuvContext *s, int y){ int h, cy; - uint8_t *src_ptr[3]; + int offset[4]; if(s->avctx->draw_horiz_band==NULL) return; @@ -686,13 +686,14 @@ }else{ cy= y; } - - src_ptr[0] = s->picture.data[0] + s->picture.linesize[0]*y; - src_ptr[1] = s->picture.data[1] + s->picture.linesize[1]*cy; - src_ptr[2] = s->picture.data[2] + s->picture.linesize[2]*cy; + + offset[0] = s->picture.linesize[0]*y; + offset[1] = s->picture.linesize[1]*cy; + offset[2] = s->picture.linesize[2]*cy; + offset[3] = 0; emms_c(); - s->avctx->draw_horiz_band(s->avctx, src_ptr, s->picture.linesize[0], y, s->width, h); + s->avctx->draw_horiz_band(s->avctx, &s->picture, offset, y, s->width, h); s->last_slice_end= y + h; }