[FFmpeg-soc] [soc]: r514 - dirac/libavcodec/dirac.c

marco subversion at mplayerhq.hu
Tue Jul 24 00:13:31 CEST 2007


Author: marco
Date: Tue Jul 24 00:13:31 2007
New Revision: 514

Log:
Use av_clip_uint8 for clipping


Modified:
   dirac/libavcodec/dirac.c

Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c	(original)
+++ dirac/libavcodec/dirac.c	Tue Jul 24 00:13:31 2007
@@ -1241,7 +1241,7 @@ static int decode_intra_frame(AVCodecCon
         /* XXX: Show the coefficients in a frame.  */
         for (x = 0; x < width; x++)
             for (y = 0; y < height; y++)
-                frame[x + y * s->picture.linesize[comp]] = FFMAX(0, FFMIN(255, coeffs[x + y * s->padded_width]));
+                frame[x + y * s->picture.linesize[comp]] = av_clip_uint8(coeffs[x + y * s->padded_width]);
         av_free(coeffs);
     }
 



More information about the FFmpeg-soc mailing list