swscale/sws_getColorspaceDetails: dont fail for non yuv
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 25 Jul 2013 00:42:09 +0000 (02:42 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 25 Jul 2013 00:50:46 +0000 (02:50 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswscale/utils.c

index c8b53c7..cff0ad8 100644 (file)
@@ -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;