diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2015-09-11 03:42:26 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-09-14 14:26:54 +0200 |
commit | 41bcc3d15204f290400ba02e4e8f87fc07bcc00e (patch) | |
tree | 03e1485909a26909b2023b8b2d2f86bd6fb894df | |
parent | 6536da7371b4847a2824ed46b98829f127f24dad (diff) | |
download | ffmpeg-41bcc3d15204f290400ba02e4e8f87fc07bcc00e.tar.gz |
jpeg2000: Split codeblock decoding from the main tile decoding
That loop is completely stand-alone.
-rw-r--r-- | libavcodec/jpeg2000dec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 2aea844a8b..4395dcda8b 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg2000dec.c @@ -1091,7 +1091,9 @@ static void tile_codeblocks(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile) Jpeg2000Prec *prec = band->prec + precno; /* Loop on codeblocks */ - for (cblkno = 0; cblkno < prec->nb_codeblocks_width * prec->nb_codeblocks_height; cblkno++) { + for (cblkno = 0; + cblkno < prec->nb_codeblocks_width * prec->nb_codeblocks_height; + cblkno++) { int x, y; Jpeg2000Cblk *cblk = prec->cblk + cblkno; decode_cblk(s, codsty, &t1, cblk, |