Commit ec727ff1 authored by bellard's avatar bellard

use ff_idct_put()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@669 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 395c47ba
......@@ -992,13 +992,12 @@ static int mjpeg_decode_sos(MJpegDecodeContext *s,
goto the_end;
}
// dprintf("mb: %d %d processed\n", mb_y, mb_x);
ff_idct (s->block);
ptr = s->current_picture[c] +
(s->linesize[c] * (v * mb_y + y) * 8) +
(h * mb_x + x) * 8;
if (s->interlaced && s->bottom_field)
ptr += s->linesize[c] >> 1;
put_pixels_clamped(s->block, ptr, s->linesize[c]);
ff_idct_put(ptr, s->linesize[c], s->block);
if (++x == h) {
x = 0;
y++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment