summaryrefslogtreecommitdiff
path: root/src/rmd_yuv_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rmd_yuv_utils.c')
-rw-r--r--src/rmd_yuv_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rmd_yuv_utils.c b/src/rmd_yuv_utils.c
index 7deef4e..ec1b884 100644
--- a/src/rmd_yuv_utils.c
+++ b/src/rmd_yuv_utils.c
@@ -506,7 +506,7 @@ void rmdXFixesPointerToYuv( yuv_buffer *yuv,
* avg3) / UCHAR_MAX;
yuv->v[idx]=
- (yuv->u[idx] * (UCHAR_MAX - avg3) +
+ (yuv->v[idx] * (UCHAR_MAX - avg3) +
((UbVr[avg2] + Vg[avg1] + Vb[avg0]) % (UCHAR_MAX + 1))
* avg3) / UCHAR_MAX;
}
© All Rights Reserved