Commit 7b5fdd04 authored by Michael Niedermayer's avatar Michael Niedermayer

locodec: flip RGBA

Fixes Ticket1222
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9e36d9e4
...@@ -216,17 +216,17 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -216,17 +216,17 @@ static int decode_frame(AVCodecContext *avctx,
-p->linesize[0], buf, buf_size, 3); -p->linesize[0], buf, buf_size, 3);
break; break;
case LOCO_CRGBA: case LOCO_RGBA: case LOCO_CRGBA: case LOCO_RGBA:
decoded = loco_decode_plane(l, p->data[0], avctx->width, avctx->height, decoded = loco_decode_plane(l, p->data[0] + p->linesize[0]*(avctx->height-1), avctx->width, avctx->height,
p->linesize[0], buf, buf_size, 4); -p->linesize[0], buf, buf_size, 4);
ADVANCE_BY_DECODED; ADVANCE_BY_DECODED;
decoded = loco_decode_plane(l, p->data[0] + 1, avctx->width, avctx->height, decoded = loco_decode_plane(l, p->data[0] + p->linesize[0]*(avctx->height-1) + 1, avctx->width, avctx->height,
p->linesize[0], buf, buf_size, 4); -p->linesize[0], buf, buf_size, 4);
ADVANCE_BY_DECODED; ADVANCE_BY_DECODED;
decoded = loco_decode_plane(l, p->data[0] + 2, avctx->width, avctx->height, decoded = loco_decode_plane(l, p->data[0] + p->linesize[0]*(avctx->height-1) + 2, avctx->width, avctx->height,
p->linesize[0], buf, buf_size, 4); -p->linesize[0], buf, buf_size, 4);
ADVANCE_BY_DECODED; ADVANCE_BY_DECODED;
decoded = loco_decode_plane(l, p->data[0] + 3, avctx->width, avctx->height, decoded = loco_decode_plane(l, p->data[0] + p->linesize[0]*(avctx->height-1) + 3, avctx->width, avctx->height,
p->linesize[0], buf, buf_size, 4); -p->linesize[0], buf, buf_size, 4);
break; break;
} }
stop: stop:
......
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