From: Michael Niedermayer <[email protected]> Skip processing bands with dimension set to 0.
Signed-off-by: Luca Barbato <[email protected]> --- libavcodec/jpeg2kdec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/jpeg2kdec.c b/libavcodec/jpeg2kdec.c index d9ced15..97749d8 100644 --- a/libavcodec/jpeg2kdec.c +++ b/libavcodec/jpeg2kdec.c @@ -1118,6 +1118,10 @@ static int jpeg2k_decode_tile(Jpeg2KDecoderContext *s, Jpeg2KTile *tile, int cblkno = 0, bandpos; 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; /* Loop on precincts */ for (precno = 0; precno < nb_precincts; precno++) { -- 1.7.9.5 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
