/* 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 */
/* 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 */