# HG changeset patch # User stefano # Date 1240055639 0 # Node ID d6d87abb137f12483113d561e6a1233b81a799b5 # Parent af07ee7cae9cdd3ccef506967fc95eef3518dffa Make sws_setColorspaceDetails() return -1 if the destination format is not supported. diff -r af07ee7cae9c -r d6d87abb137f libswscale/swscale.c --- 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;