diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-24 03:24:26 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-24 03:24:26 +0400 |
commit | cccb45751e93142d71be78f6bb90bbfb50ee13be (patch) | |
tree | 8bae244a8a26aeabeb62ae9f9cb547b5d444e520 /libswscale/yuv2rgb.c | |
parent | a494792961a08f9f0e47e7eeed65e609178ff436 (diff) |
yuv2rgb: fix integer overflow in fill_gv_table()
Fixes CID703747
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/yuv2rgb.c')
-rw-r--r-- | libswscale/yuv2rgb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c index 23c5f6dc48..53b69d0f73 100644 --- a/libswscale/yuv2rgb.c +++ b/libswscale/yuv2rgb.c @@ -680,7 +680,7 @@ static void fill_table(uint8_t* table[256 + 2*YUVRGB_TABLE_HEADROOM], const int } } -static void fill_gv_table(int table[256 + 2*YUVRGB_TABLE_HEADROOM], const int elemsize, const int inc) +static void fill_gv_table(int table[256 + 2*YUVRGB_TABLE_HEADROOM], const int elemsize, const int64_t inc) { int i; int off = -(inc >> 9); |