mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
jpeg2000: Make nreslevel fields int
This prevents potential integer overflows Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
66c4d54413
commit
2c2a8f70f5
@ -128,8 +128,8 @@ typedef struct Jpeg2000TgtNode {
|
||||
} Jpeg2000TgtNode;
|
||||
|
||||
typedef struct Jpeg2000CodingStyle {
|
||||
uint8_t nreslevels; // number of resolution levels
|
||||
uint8_t nreslevels2decode; // number of resolution levels to decode
|
||||
int nreslevels; // number of resolution levels
|
||||
int nreslevels2decode; // number of resolution levels to decode
|
||||
uint8_t log2_cblk_width,
|
||||
log2_cblk_height; // exponent of codeblock size
|
||||
uint8_t transform; // DWT type
|
||||
|
Loading…
Reference in New Issue
Block a user