[FFmpeg-devel] [PATCH] Fix return value for sws_setColorspaceDetails()

Diego Biurrun diego
Tue Apr 14 12:09:02 CEST 2009


On Tue, Apr 14, 2009 at 11:57:14AM +0200, Stefano Sabatini wrote:
> I'm still in the process of figuring out how the whole thing works,
> but the fix looks obvious.
> 
> --- ffmpeg.orig/libswscale/swscale.c	2009-04-14 11:54:53.000000000 +0200
> +++ ffmpeg/libswscale/swscale.c	2009-04-14 11:54:57.000000000 +0200
> @@ -2299,7 +2299,7 @@
>      c->srcRange  = srcRange;
>      c->dstRange  = dstRange;
> -    if (isYUV(c->dstFormat) || isGray(c->dstFormat)) return 0;
> +    if (isYUV(c->dstFormat) || isGray(c->dstFormat)) return -1;

Maybe you could put the return on the next line while you're at it..

Diego



More information about the ffmpeg-devel mailing list