Commit 2c2a8f70 authored by Michael Niedermayer's avatar Michael Niedermayer

jpeg2000: Make nreslevel fields int

This prevents potential integer overflows
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 66c4d544
......@@ -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
......
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