[FFmpeg-cvslog] r29187 - trunk/libswscale/swscale.c

stefano subversion
Sat Apr 18 13:54:00 CEST 2009


Author: stefano
Date: Sat Apr 18 13:53:59 2009
New Revision: 29187

Log:
Make sws_setColorspaceDetails() return -1 if the destination format is
not supported.

Modified:
   trunk/libswscale/swscale.c

Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c	Sat Apr 18 13:45:31 2009	(r29186)
+++ trunk/libswscale/swscale.c	Sat Apr 18 13:53:59 2009	(r29187)
@@ -2294,7 +2294,7 @@ int sws_setColorspaceDetails(SwsContext 
     c->saturation= saturation;
     c->srcRange  = srcRange;
     c->dstRange  = dstRange;
-    if (isYUV(c->dstFormat) || isGray(c->dstFormat)) return 0;
+    if (isYUV(c->dstFormat) || isGray(c->dstFormat)) return -1;
 
     c->uOffset=   0x0400040004000400LL;
     c->vOffset=   0x0400040004000400LL;



More information about the ffmpeg-cvslog mailing list