Change RGB2YUV_SHIFT from 16 to 15 to make it able to work
[ffmpeg.git] / libswscale / swscale.c
index 72ba001..52d2359 100644 (file)
@@ -152,7 +152,7 @@ unsigned swscale_version(void)
         || isBGR(x)                 \
     )
 
-#define RGB2YUV_SHIFT 16
+#define RGB2YUV_SHIFT 15
 #define BY ((int)( 0.098*(1<<RGB2YUV_SHIFT)+0.5))
 #define BV ((int)(-0.071*(1<<RGB2YUV_SHIFT)+0.5))
 #define BU ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5))