diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-05 18:11:57 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-05 18:34:07 +0200 |
commit | 2c2a8f70f5718cffe75b10b015b0cefd021879d3 (patch) | |
tree | 59355eb40acb49458d9b82392bb15eb1d0273d8a /libavcodec/jpeg2000.h | |
parent | 66c4d544131477cf25d63bf7e2e69c37bd65cba1 (diff) | |
download | ffmpeg-2c2a8f70f5718cffe75b10b015b0cefd021879d3.tar.gz |
jpeg2000: Make nreslevel fields int
This prevents potential integer overflows
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/jpeg2000.h')
-rw-r--r-- | libavcodec/jpeg2000.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/jpeg2000.h b/libavcodec/jpeg2000.h index e9d01acfef..2ef29239a9 100644 --- a/libavcodec/jpeg2000.h +++ b/libavcodec/jpeg2000.h @@ -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 |