avcodec/jpeg2000dec: Increase tile part limit to 256
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 20 Jun 2015 02:38:31 +0000 (04:38 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 20 Jun 2015 12:26:34 +0000 (14:26 +0200)
This is the maximum that the syntax of jpeg2000 is capable to store

Fixes Ticket4639

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/jpeg2000dec.c

index 4d82340..88f6825 100644 (file)
@@ -60,7 +60,7 @@ typedef struct Jpeg2000Tile {
     uint8_t             properties[4];
     Jpeg2000CodingStyle codsty[4];
     Jpeg2000QuantStyle  qntsty[4];
-    Jpeg2000TilePart    tile_part[32];
+    Jpeg2000TilePart    tile_part[256];
     uint16_t tp_idx;                    // Tile-part index
 } Jpeg2000Tile;