summaryrefslogtreecommitdiff
path: root/libavcodec/jpeg2000.h
diff options
context:
space:
mode:
authorGautam Ramakrishnan <gautamramk@gmail.com>2020-06-29 23:29:06 +0530
committerMichael Niedermayer <michael@niedermayer.cc>2020-06-30 20:35:23 +0200
commit579ac96a0422be18a10277aa6e8dd26207dc4d40 (patch)
tree14fbe56818d4982d2afc7ea9710a58f8c2bb0bf1 /libavcodec/jpeg2000.h
parent9aef4ae97599c61845ed76d37e81e5a8c4b266ff (diff)
libavcodec/jpeg2000.c: Precinct size check removed
This patch removes a check which throws an error if the log2 precinct width/height is 0. The standard allows the first component to have 0 as the log2 width/height. However, to ensure proper intialization of coding style, an extra check has been added. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/jpeg2000.h')
-rw-r--r--libavcodec/jpeg2000.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/jpeg2000.h b/libavcodec/jpeg2000.h
index 0f82716981..27df43786d 100644
--- a/libavcodec/jpeg2000.h
+++ b/libavcodec/jpeg2000.h
@@ -144,6 +144,7 @@ typedef struct Jpeg2000CodingStyle {
uint8_t prog_order; // progression order
uint8_t log2_prec_widths[JPEG2000_MAX_RESLEVELS]; // precincts size according resolution levels
uint8_t log2_prec_heights[JPEG2000_MAX_RESLEVELS]; // TODO: initialize prec_size array with 0?
+ uint8_t init;
} Jpeg2000CodingStyle;
typedef struct Jpeg2000QuantStyle {