Commit ad31c904 authored by Fabrice Bellard's avatar Fabrice Bellard

use ff_idct_put/add()

Originally committed as revision 670 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent ee4b748b
...@@ -1103,8 +1103,7 @@ static inline void put_dct(MpegEncContext *s, ...@@ -1103,8 +1103,7 @@ static inline void put_dct(MpegEncContext *s,
{ {
if (!s->mpeg2) if (!s->mpeg2)
s->dct_unquantize(s, block, i, s->qscale); s->dct_unquantize(s, block, i, s->qscale);
ff_idct (block); ff_idct_put (dest, line_size, block);
put_pixels_clamped(block, dest, line_size);
} }
/* add block[] to dest[] */ /* add block[] to dest[] */
...@@ -1119,8 +1118,7 @@ static inline void add_dct(MpegEncContext *s, ...@@ -1119,8 +1118,7 @@ static inline void add_dct(MpegEncContext *s,
if(s->encoding || (!s->h263_msmpeg4)) if(s->encoding || (!s->h263_msmpeg4))
s->dct_unquantize(s, block, i, s->qscale); s->dct_unquantize(s, block, i, s->qscale);
ff_idct (block); ff_idct_add (dest, line_size, block);
add_pixels_clamped(block, dest, line_size);
} }
} }
......
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