avcodec/jpeg2000dec: Fix gain regression with gray16
Found-by: carl Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6bf8d9e164
commit
0916938a8d
@ -1330,7 +1330,8 @@ static int jpeg2000_decode_tile(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
int precision = picture->format == AV_PIX_FMT_XYZ12 ? 16 : s->precision;
|
int precision = picture->format == AV_PIX_FMT_XYZ12 ||
|
||||||
|
picture->format == AV_PIX_FMT_GRAY16 ? 16 : s->precision;
|
||||||
|
|
||||||
for (compno = 0; compno < s->ncomponents; compno++) {
|
for (compno = 0; compno < s->ncomponents; compno++) {
|
||||||
Jpeg2000Component *comp = tile->comp + compno;
|
Jpeg2000Component *comp = tile->comp + compno;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user