Skip to content
Snippets Groups Projects
Commit cccb4575 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

yuv2rgb: fix integer overflow in fill_gv_table()


Fixes CID703747
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent a4947929
No related branches found
No related tags found
No related merge requests found
...@@ -680,7 +680,7 @@ static void fill_table(uint8_t* table[256 + 2*YUVRGB_TABLE_HEADROOM], const int ...@@ -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 i;
int off = -(inc >> 9); int off = -(inc >> 9);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment