On Wed, Jun 29, 2011 at 09:05:11PM -0700, Ronald S. Bultje wrote:
> ---
>  libswscale/swscale.c |   12 ++++++------
>  1 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/libswscale/swscale.c b/libswscale/swscale.c
> index 987afff..644f848 100644
> --- a/libswscale/swscale.c
> +++ b/libswscale/swscale.c
> @@ -1982,8 +1982,8 @@ static void chrRangeToJpeg16_c(int16_t *_dstU, int16_t 
> *_dstV, int width)
>      int32_t *dstU = (int32_t *) _dstU;
>      int32_t *dstV = (int32_t *) _dstV;
>      for (i = 0; i < width; i++) {
> -        dstU[i] = (FFMIN(dstU[i],30775)*4663 - 9289992)>>12; //-264
> -        dstV[i] = (FFMIN(dstV[i],30775)*4663 - 9289992)>>12; //-264
> +        dstU[i] = (FFMIN(dstU[i],30775<<4)*4663 - (9289992<<4))>>12; //-264
> +        dstV[i] = (FFMIN(dstV[i],30775<<4)*4663 - (9289992<<4))>>12; //-264

looks ok
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to