Commit 61c82214 authored by Derek Buitenhuis's avatar Derek Buitenhuis

cllc: Use outbuf in RGB and ARGB functions

Signed-off-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parent d48f2219
...@@ -136,14 +136,13 @@ static int read_argb_line(CLLCContext *ctx, GetBitContext *gb, int *top_left, ...@@ -136,14 +136,13 @@ static int read_argb_line(CLLCContext *ctx, GetBitContext *gb, int *top_left,
CLOSE_READER(bits, gb); CLOSE_READER(bits, gb);
dst -= 4 * ctx->avctx->width; top_left[0] = outbuf[0];
top_left[0] = dst[0];
/* Only stash components if they are not transparent */ /* Only stash components if they are not transparent */
if (top_left[0]) { if (top_left[0]) {
top_left[1] = dst[1]; top_left[1] = outbuf[1];
top_left[2] = dst[2]; top_left[2] = outbuf[2];
top_left[3] = dst[3]; top_left[3] = outbuf[3];
} }
return 0; return 0;
...@@ -174,7 +173,7 @@ static int read_rgb24_component_line(CLLCContext *ctx, GetBitContext *gb, ...@@ -174,7 +173,7 @@ static int read_rgb24_component_line(CLLCContext *ctx, GetBitContext *gb,
CLOSE_READER(bits, gb); CLOSE_READER(bits, gb);
/* Stash the first pixel */ /* Stash the first pixel */
*top_left = dst[-3 * ctx->avctx->width]; *top_left = outbuf[0];
return 0; return 0;
} }
......
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