OSDN Git Service

avfilter/vsrc_mptestsrc: Use av_clip_uint8()
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 21 Feb 2015 13:50:23 +0000 (14:50 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 21 Feb 2015 13:50:23 +0000 (14:50 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vsrc_mptestsrc.c

index d045704..0b80e47 100644 (file)
@@ -121,7 +121,7 @@ static void idct(uint8_t *dst, int dst_linesize, int src[64])
             for (k = 0; k < 8; k++)
                 sum += c[k*8+i]*tmp[8*k+j];
 
-            dst[dst_linesize*i + j] = av_clip((int)floor(sum+0.5), 0, 255);
+            dst[dst_linesize*i + j] = av_clip_uint8((int)floor(sum+0.5));
         }
     }
 }