Commit 0f3886fa authored by Paul B Mahol's avatar Paul B Mahol Committed by Michael Niedermayer

j2kdec: remove pointless swapping

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ebbf10ef
......@@ -269,7 +269,7 @@ static int get_siz(J2kDecoderContext *s)
}
break;
case 4:
s->avctx->pix_fmt = PIX_FMT_BGRA;
s->avctx->pix_fmt = PIX_FMT_RGBA;
break;
}
......@@ -848,9 +848,6 @@ static int decode_tile(J2kDecoderContext *s, J2kTile *tile)
if (tile->codsty[0].mct)
mct_decode(s, tile);
if (s->avctx->pix_fmt == PIX_FMT_BGRA) // RGBA -> BGRA
FFSWAP(int *, src[0], src[2]);
if (s->precision <= 8) {
for (compno = 0; compno < s->ncomponents; compno++){
y = tile->comp[compno].coord[1][0] - s->image_offset_y;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment