Browse Source

Trivial: j2kenc: fix compiler warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Dominique Leuenberger Michael Niedermayer 14 years ago
parent
commit
8a25d0a860
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/j2kenc.c

+ 2
- 1
libavcodec/j2kenc.c View File

@@ -869,7 +869,8 @@ static int encode_tile(J2kEncoderContext *s, J2kTile *tile, int tileno)
int *ptr = t1.data[y-yy0];
for (x = xx0; x < xx1; x++){
*ptr = (comp->data[(comp->coord[0][1] - comp->coord[0][0]) * y + x]);
*ptr++ = (int64_t)*ptr * (int64_t)(8192 * 8192 / band->stepsize) >> 13 - NMSEDEC_FRACBITS;
*ptr = (int64_t)*ptr * (int64_t)(8192 * 8192 / band->stepsize) >> 13 - NMSEDEC_FRACBITS;
*ptr++;
}
}
}


Loading…
Cancel
Save