mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
jpeg2000: Speed up jpeg2000_decode_tile()
Skip processing bands with dimension set to 0. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
64f6570c6e
commit
53d5d89c1b
@ -1118,6 +1118,10 @@ static int jpeg2000_decode_tile(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile,
|
|||||||
int cblkno = 0, bandpos;
|
int cblkno = 0, bandpos;
|
||||||
bandpos = bandno + (reslevelno > 0);
|
bandpos = bandno + (reslevelno > 0);
|
||||||
|
|
||||||
|
if (band->coord[0][0] == band->coord[0][1] ||
|
||||||
|
band->coord[1][0] == band->coord[1][1])
|
||||||
|
continue;
|
||||||
|
|
||||||
nb_precincts = rlevel->num_precincts_x * rlevel->num_precincts_y;
|
nb_precincts = rlevel->num_precincts_x * rlevel->num_precincts_y;
|
||||||
/* Loop on precincts */
|
/* Loop on precincts */
|
||||||
for (precno = 0; precno < nb_precincts; precno++) {
|
for (precno = 0; precno < nb_precincts; precno++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user