From 81cc7d0bd1eab0aa782ff8dd49e087025a42cdee Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Thu, 30 Jun 2011 07:05:52 -0700 Subject: [PATCH] swscale: fix another yuv range conversion overflow in 16bit scaling. --- libswscale/swscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 1e4994c..ef8fc39 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -2001,7 +2001,7 @@ static void lumRangeToJpeg16_c(int16_t *_dst, int width) int i; int32_t *dst = (int32_t *) _dst; for (i = 0; i < width; i++) - dst[i] = (FFMIN(dst[i],30189<<4)*19077 - (39057361<<4))>>14; + dst[i] = (FFMIN(dst[i],30189<<4)*4769 - (39057361<<2))>>12; } static void lumRangeFromJpeg16_c(int16_t *_dst, int width) { -- 2.7.4