mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00:00
swscale/utils: override forced-zero formats back to full range
Fixes vf_scale outputting RGB AVFrames with limited range flagged in case either input or output specifically sets the range. This is the reverse of the logic utilized for RGB and PAL8 content in sws_setColorspaceDetails.
This commit is contained in:
parent
3fe24fe232
commit
7ea4bcff7b
@ -1013,8 +1013,8 @@ int sws_getColorspaceDetails(struct SwsContext *c, int **inv_table,
|
||||
|
||||
*inv_table = c->srcColorspaceTable;
|
||||
*table = c->dstColorspaceTable;
|
||||
*srcRange = c->srcRange;
|
||||
*dstRange = c->dstRange;
|
||||
*srcRange = range_override_needed(c->srcFormat) ? 1 : c->srcRange;
|
||||
*dstRange = range_override_needed(c->dstFormat) ? 1 : c->dstRange;
|
||||
*brightness = c->brightness;
|
||||
*contrast = c->contrast;
|
||||
*saturation = c->saturation;
|
||||
|
Loading…
Reference in New Issue
Block a user