diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-07-17 12:29:07 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-07-17 12:29:07 +0000 |
commit | 7a06ff148d0321e863a682334c59f59b3e8e7b6d (patch) | |
tree | 4b6b4fd27b6fb39589517a0bfde54f701d319130 /libavcodec/huffyuv.c | |
parent | bc3513865a10f0f070bdc4eafd4e0df2b2ca3f6d (diff) | |
download | ffmpeg-7a06ff148d0321e863a682334c59f59b3e8e7b6d.tar.gz |
AVCodec.flush()
ff_draw_horiz_band() in coded order / cleanup
Originally committed as revision 2064 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/huffyuv.c')
-rw-r--r-- | libavcodec/huffyuv.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c index e9233c28e2..4c8229a3c3 100644 --- a/libavcodec/huffyuv.c +++ b/libavcodec/huffyuv.c @@ -673,7 +673,7 @@ static void decode_bgr_bitstream(HYuvContext *s, int count){ 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 @@ static void draw_slice(HYuvContext *s, int y){ }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; } |