changeset 478:055d9ac1584d libavcodec

use ff_idct_put/add()
author bellard
date Wed, 05 Jun 2002 18:36:03 +0000
parents bc7ceb6461eb
children 40ffce2cb6ef
files mpegvideo.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Wed Jun 05 18:35:28 2002 +0000
+++ b/mpegvideo.c	Wed Jun 05 18:36:03 2002 +0000
@@ -1103,8 +1103,7 @@
 {
     if (!s->mpeg2)
         s->dct_unquantize(s, block, i, s->qscale);
-    ff_idct (block);
-    put_pixels_clamped(block, dest, line_size);
+    ff_idct_put (dest, line_size, block);
 }
 
 /* add block[] to dest[] */
@@ -1119,8 +1118,7 @@
             if(s->encoding || (!s->h263_msmpeg4))
                 s->dct_unquantize(s, block, i, s->qscale);
 
-        ff_idct (block);
-        add_pixels_clamped(block, dest, line_size);
+        ff_idct_add (dest, line_size, block);
     }
 }