diff options
author | Gautam Ramakrishnan <gautamramk@gmail.com> | 2020-06-29 23:29:06 +0530 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-06-30 20:35:23 +0200 |
commit | 579ac96a0422be18a10277aa6e8dd26207dc4d40 (patch) | |
tree | 14fbe56818d4982d2afc7ea9710a58f8c2bb0bf1 /libavcodec/jpeg2000.c | |
parent | 9aef4ae97599c61845ed76d37e81e5a8c4b266ff (diff) | |
download | ffmpeg-579ac96a0422be18a10277aa6e8dd26207dc4d40.tar.gz |
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.c')
-rw-r--r-- | libavcodec/jpeg2000.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/jpeg2000.c b/libavcodec/jpeg2000.c index 73206d17f3..1aca31ffa4 100644 --- a/libavcodec/jpeg2000.c +++ b/libavcodec/jpeg2000.c @@ -509,9 +509,6 @@ int ff_jpeg2000_init_component(Jpeg2000Component *comp, // update precincts size: 2^n value reslevel->log2_prec_width = codsty->log2_prec_widths[reslevelno]; reslevel->log2_prec_height = codsty->log2_prec_heights[reslevelno]; - if (!reslevel->log2_prec_width || !reslevel->log2_prec_height) { - return AVERROR_INVALIDDATA; - } /* Number of bands for each resolution level */ if (reslevelno == 0) |