Commit a7e45cfa authored by Michael Niedermayer's avatar Michael Niedermayer

swscale/sws_getColorspaceDetails: dont fail for non yuv

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6db57fa8
......@@ -1006,7 +1006,7 @@ int sws_getColorspaceDetails(struct SwsContext *c, int **inv_table,
int *srcRange, int **table, int *dstRange,
int *brightness, int *contrast, int *saturation)
{
if (!c || isYUV(c->dstFormat) || isGray(c->dstFormat))
if (!c )
return -1;
*inv_table = c->srcColorspaceTable;
......
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