comparison libswscale/swscale.c @ 29146:d6d87abb137f

Make sws_setColorspaceDetails() return -1 if the destination format is not supported.
author stefano
date Sat, 18 Apr 2009 11:53:59 +0000
parents af07ee7cae9c
children a5b18d98eaf0
comparison
equal deleted inserted replaced
29145:af07ee7cae9c 29146:d6d87abb137f
2292 c->brightness= brightness; 2292 c->brightness= brightness;
2293 c->contrast = contrast; 2293 c->contrast = contrast;
2294 c->saturation= saturation; 2294 c->saturation= saturation;
2295 c->srcRange = srcRange; 2295 c->srcRange = srcRange;
2296 c->dstRange = dstRange; 2296 c->dstRange = dstRange;
2297 if (isYUV(c->dstFormat) || isGray(c->dstFormat)) return 0; 2297 if (isYUV(c->dstFormat) || isGray(c->dstFormat)) return -1;
2298 2298
2299 c->uOffset= 0x0400040004000400LL; 2299 c->uOffset= 0x0400040004000400LL;
2300 c->vOffset= 0x0400040004000400LL; 2300 c->vOffset= 0x0400040004000400LL;
2301 2301
2302 if (!srcRange){ 2302 if (!srcRange){