Browse Source

avcodec/jpeg2000dec: Fix shift for RGB(A)48/64

Found-by: carl
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.8
Michael Niedermayer 10 years ago
parent
commit
213f2da46a
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/jpeg2000dec.c

+ 2
- 0
libavcodec/jpeg2000dec.c View File

@@ -1331,6 +1331,8 @@ static int jpeg2000_decode_tile(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile,
}
} else {
int precision = picture->format == AV_PIX_FMT_XYZ12 ||
picture->format == AV_PIX_FMT_RGB48 ||
picture->format == AV_PIX_FMT_RGBA64 ||
picture->format == AV_PIX_FMT_GRAY16 ? 16 : s->precision;

for (compno = 0; compno < s->ncomponents; compno++) {


Loading…
Cancel
Save