aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-24 01:24:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-24 01:24:26 +0200
commitcccb45751e93142d71be78f6bb90bbfb50ee13be (patch)
tree8bae244a8a26aeabeb62ae9f9cb547b5d444e520 /libswscale
parenta494792961a08f9f0e47e7eeed65e609178ff436 (diff)
downloadffmpeg-cccb45751e93142d71be78f6bb90bbfb50ee13be.tar.gz
yuv2rgb: fix integer overflow in fill_gv_table()
Fixes CID703747 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/yuv2rgb.c2
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);