diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-01-01 23:57:07 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-06-08 00:37:18 +0200 |
| commit | 94a73247dbebba37dc386924e5ae028acaa3d0a2 (patch) | |
| tree | b2e939edd39abb9f31c111c228329f8b58ce05c3 /src | |
| parent | 5a1e4323f092ccaf992ecd1db51c384bf073fe65 (diff) | |
Revert "Packet header writing: set empty packet header bit to 0 when appropriate (small optimization)"
This reverts commit 2609fb8077125b5b31f1bcc2f98c12ff1e6572d7.
I am testing this reversion to see if it fixes problems with DCP
playback on various systems (DCP-o-matic bug #1136).
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/openjp2/t2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/openjp2/t2.c b/src/lib/openjp2/t2.c index 71472b49..bc0475b9 100644 --- a/src/lib/openjp2/t2.c +++ b/src/lib/openjp2/t2.c @@ -797,8 +797,7 @@ static OPJ_BOOL opj_t2_encode_packet(OPJ_UINT32 tileno, /* Writing Packet header */ band = res->bands; - for (bandno = 0; !packet_empty && - bandno < res->numbands; ++bandno, ++band) { + for (bandno = 0; bandno < res->numbands; ++bandno, ++band) { opj_tcd_precinct_t *prc; /* Skip empty bands */ @@ -931,7 +930,7 @@ static OPJ_BOOL opj_t2_encode_packet(OPJ_UINT32 tileno, /* Writing the packet body */ band = res->bands; - for (bandno = 0; !packet_empty && bandno < res->numbands; bandno++, ++band) { + for (bandno = 0; bandno < res->numbands; bandno++, ++band) { opj_tcd_precinct_t *prc; /* Skip empty bands */ |
