summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorstefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-04-18 11:53:59 +0000
committerstefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-04-18 11:53:59 +0000
commitd5b3f76234f79a1070c29acd1eb632587c24d207 (patch)
tree706fe4c32630b0d37df249abd461f605d79c04d8 /libswscale
parent685890259fb26662a1a5e52bbce9e5067c07a281 (diff)
downloadmpv-d5b3f76234f79a1070c29acd1eb632587c24d207.tar.bz2
mpv-d5b3f76234f79a1070c29acd1eb632587c24d207.tar.xz
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
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.c2
1 files changed, 1 insertions, 1 deletions
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;