Commit a4947929 authored by Michael Niedermayer's avatar Michael Niedermayer

yuv2rgb: fix integer overflow in fill_table

Fixes CID703748
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6c87b2be
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment