changeset 477:bc7ceb6461eb libavcodec

use ff_idct_put()
author bellard
date Wed, 05 Jun 2002 18:35:28 +0000
parents ec13b0a726c3
children 055d9ac1584d
files mjpeg.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mjpeg.c	Wed Jun 05 14:25:06 2002 +0000
+++ b/mjpeg.c	Wed Jun 05 18:35:28 2002 +0000
@@ -992,13 +992,12 @@
                         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++;