History

swscale/sws_getColorspaceDetails: dont fail for non yuv

Michael Niedermayer committed 13 years ago

Commit a7e45cf1 parent 6db57fa1 file · +1 −1Browse files

Unified · Split

libswscale/utils.c+1−1
@@ -1006,7 +1006,7 @@ int sws_getColorspaceDetails(struct SwsContext *c, int **inv_table, · 1005 unmodified lines
1006 int *srcRange, int **table, int *dstRange,1006 int *srcRange, int **table, int *dstRange,
1007 int *brightness, int *contrast, int *saturation)1007 int *brightness, int *contrast, int *saturation)
1008{1008{
1009 if (!c || isYUV(c->dstFormat) || isGray(c->dstFormat))1009 if (!c )
1010 return -1;1010 return -1;
1011 1011
1012 *inv_table = c->srcColorspaceTable;1012 *inv_table = c->srcColorspaceTable;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t