Commit 150abf22 authored by stefano's avatar stefano

Make sws_setColorspaceDetails() return -1 if the destination format is

not supported.


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@29187 b3059339-0415-0410-9bf9-f77b7e298cf2
parent d1eac96d
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment