diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-04-18 11:53:59 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-04-18 11:53:59 +0000 |
commit | 0c067dc34b6313e9be4763f0cd4c3823fcf030c7 (patch) | |
tree | cff446afb23e761fa5cb09016b6fe1fa1cdc62d8 | |
parent | 2d26fa2822264de4e13f7d259eff9adb13bad3cd (diff) | |
download | ffmpeg-0c067dc34b6313e9be4763f0cd4c3823fcf030c7.tar.gz |
Make sws_setColorspaceDetails() return -1 if the destination format is
not supported.
Originally committed as revision 29187 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
-rw-r--r-- | libswscale/swscale.c | 2 |
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; |