forked from FFmpeg/FFmpeg
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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue