diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-25 02:42:09 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-07-25 02:50:46 +0200 |
commit | a7e45cfa11853a2a22863c8a12f96b658d04ecf5 (patch) | |
tree | 22de8aee450854ec7903d2457b96dc41fba848ed /libswscale | |
parent | 6db57fa8bc1a40c16293f9224d195e43ae52aabd (diff) | |
download | ffmpeg-a7e45cfa11853a2a22863c8a12f96b658d04ecf5.tar.gz |
swscale/sws_getColorspaceDetails: dont fail for non yuv
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index c8b53c7d41..cff0ad8cb9 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; |