mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
swscale/sws_getColorspaceDetails: dont fail for non yuv
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6db57fa8bc
commit
a7e45cfa11
@ -1006,7 +1006,7 @@ int sws_getColorspaceDetails(struct SwsContext *c, int **inv_table,
|
|||||||
int *srcRange, int **table, int *dstRange,
|
int *srcRange, int **table, int *dstRange,
|
||||||
int *brightness, int *contrast, int *saturation)
|
int *brightness, int *contrast, int *saturation)
|
||||||
{
|
{
|
||||||
if (!c || isYUV(c->dstFormat) || isGray(c->dstFormat))
|
if (!c )
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
*inv_table = c->srcColorspaceTable;
|
*inv_table = c->srcColorspaceTable;
|
||||||
|
Loading…
Reference in New Issue
Block a user