changeset 29146:d6d87abb137f

Make sws_setColorspaceDetails() return -1 if the destination format is not supported.
author stefano
date Sat, 18 Apr 2009 11:53:59 +0000
parents af07ee7cae9c
children 0ee386008a40
files libswscale/swscale.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Sat Apr 18 11:45:31 2009 +0000
+++ b/libswscale/swscale.c	Sat Apr 18 11:53:59 2009 +0000
@@ -2294,7 +2294,7 @@
     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;