summaryrefslogtreecommitdiff
path: root/libavcodec/huffyuvdsp.c
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2014-05-29 09:10:39 +0000
committerMichael Niedermayer <michaelni@gmx.at>2014-05-29 14:46:21 +0200
commit25e6310a3ec96ce991c73f50c411736f4c80de11 (patch)
tree0abeb6b4f7711a3c14454f7bad0c515e2e79c576 /libavcodec/huffyuvdsp.c
parentc609f803e1c1689e8a557a9a9d624bf53aa4b7d3 (diff)
downloadffmpeg-25e6310a3ec96ce991c73f50c411736f4c80de11.tar.gz
huffyuv: change left prediction access in BGRA
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/huffyuvdsp.c')
-rw-r--r--libavcodec/huffyuvdsp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/huffyuvdsp.c b/libavcodec/huffyuvdsp.c
index 089f6671ef..cbc09cf124 100644
--- a/libavcodec/huffyuvdsp.c
+++ b/libavcodec/huffyuvdsp.c
@@ -82,10 +82,10 @@ static int add_hfyu_left_pred_c(uint8_t *dst, const uint8_t *src, int w,
}
static void add_hfyu_left_pred_bgr32_c(uint8_t *dst, const uint8_t *src,
- int w, int *red, int *green,
- int *blue, int *alpha)
+ intptr_t w, uint8_t *left)
{
- int i, r = *red, g = *green, b = *blue, a = *alpha;
+ int i;
+ uint8_t r = left[R], g = left[G], b = left[B], a = left[A];
for (i = 0; i < w; i++) {
b += src[4 * i + B];
@@ -99,10 +99,10 @@ static void add_hfyu_left_pred_bgr32_c(uint8_t *dst, const uint8_t *src,
dst[4 * i + A] = a;
}
- *red = r;
- *green = g;
- *blue = b;
- *alpha = a;
+ left[B] = b;
+ left[G] = g;
+ left[R] = r;
+ left[A] = a;
}
av_cold void ff_huffyuvdsp_init(HuffYUVDSPContext *c)