[FFmpeg-cvslog] avfilter/vsrc_mptestsrc: Use av_clip_uint8()

Michael Niedermayer git at videolan.org
Sat Feb 21 14:59:10 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Feb 21 14:50:23 2015 +0100| [6660c598cdfad51cb4d8568935c6af3e13c020e1] | committer: Michael Niedermayer

avfilter/vsrc_mptestsrc: Use av_clip_uint8()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6660c598cdfad51cb4d8568935c6af3e13c020e1
---

 libavfilter/vsrc_mptestsrc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vsrc_mptestsrc.c b/libavfilter/vsrc_mptestsrc.c
index d045704..0b80e47 100644
--- a/libavfilter/vsrc_mptestsrc.c
+++ b/libavfilter/vsrc_mptestsrc.c
@@ -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));
         }
     }
 }



More information about the ffmpeg-cvslog mailing list