Browse Source

yuv2rgb: fix integer overflow in fill_gv_table()

Fixes CID703747
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 12 years ago
parent
commit
cccb45751e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libswscale/yuv2rgb.c

+ 1
- 1
libswscale/yuv2rgb.c View File

@@ -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);


Loading…
Cancel
Save