From d5b3f76234f79a1070c29acd1eb632587c24d207 Mon Sep 17 00:00:00 2001 From: stefano Date: Sat, 18 Apr 2009 11:53:59 +0000 Subject: Make sws_setColorspaceDetails() return -1 if the destination format is not supported. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29187 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libswscale/swscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libswscale/swscale.c') diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 132f35f5f3..b563784fc9 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -2294,7 +2294,7 @@ int sws_setColorspaceDetails(SwsContext *c, const int inv_table[4], int srcRange 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; -- cgit v1.2.3