[FFmpeg-cvslog] yuv2rgb: fix integer overflow in fill_table

Michael Niedermayer git at videolan.org
Wed Oct 24 01:57:22 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Oct 24 01:22:56 2012 +0200| [a494792961a08f9f0e47e7eeed65e609178ff436] | committer: Michael Niedermayer

yuv2rgb: fix integer overflow in fill_table

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

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

 libswscale/yuv2rgb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c
index 18afc5b..23c5f6d 100644
--- a/libswscale/yuv2rgb.c
+++ b/libswscale/yuv2rgb.c
@@ -667,7 +667,7 @@ SwsFunc ff_yuv2rgb_get_func_ptr(SwsContext *c)
 }
 
 static void fill_table(uint8_t* table[256 + 2*YUVRGB_TABLE_HEADROOM], const int elemsize,
-                       const int inc, void *y_tab)
+                       const int64_t inc, void *y_tab)
 {
     int i;
     uint8_t *y_table = y_tab;



More information about the ffmpeg-cvslog mailing list