[FFmpeg-cvslog] swscale/sws_getColorspaceDetails: dont fail for non yuv

Michael Niedermayer git at videolan.org
Thu Jul 25 03:00:50 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jul 25 02:42:09 2013 +0200| [a7e45cfa11853a2a22863c8a12f96b658d04ecf5] | committer: Michael Niedermayer

swscale/sws_getColorspaceDetails: dont fail for non yuv

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a7e45cfa11853a2a22863c8a12f96b658d04ecf5
---

 libswscale/utils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/utils.c b/libswscale/utils.c
index c8b53c7..cff0ad8 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -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;



More information about the ffmpeg-cvslog mailing list