aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cllc.c
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2013-06-24 14:12:16 -0400
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2013-06-24 14:55:01 -0400
commitd9c89ef86b9400e50c2486f9406fad15c85bab22 (patch)
tree8e287702f1363b7837238339612e28afe965cde2 /libavcodec/cllc.c
parent1ef6ac107162ce85b2ef0341afe1e9a96dced39c (diff)
downloadffmpeg-d9c89ef86b9400e50c2486f9406fad15c85bab22.tar.gz
cllc: Use outbuf in RGB and ARGB functions
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/cllc.c')
-rw-r--r--libavcodec/cllc.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/libavcodec/cllc.c b/libavcodec/cllc.c
index 070f84e1c9..0e42c05173 100644
--- a/libavcodec/cllc.c
+++ b/libavcodec/cllc.c
@@ -136,14 +136,13 @@ static int read_argb_line(CLLCContext *ctx, GetBitContext *gb, int *top_left,
CLOSE_READER(bits, gb);
- dst -= 4 * ctx->avctx->width;
- top_left[0] = dst[0];
+ top_left[0] = outbuf[0];
/* Only stash components if they are not transparent */
if (top_left[0]) {
- top_left[1] = dst[1];
- top_left[2] = dst[2];
- top_left[3] = dst[3];
+ top_left[1] = outbuf[1];
+ top_left[2] = outbuf[2];
+ top_left[3] = outbuf[3];
}
return 0;
@@ -174,7 +173,7 @@ static int read_rgb24_component_line(CLLCContext *ctx, GetBitContext *gb,
CLOSE_READER(bits, gb);
/* Stash the first pixel */
- *top_left = dst[-3 * ctx->avctx->width];
+ *top_left = outbuf[0];
return 0;
}