aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_scale_cuda.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2022-02-23 22:48:40 +0200
committerMartin Storsjö <martin@martin.st>2022-03-07 00:15:23 +0200
commite645a1ddb90a863e129108aad9aa7e2d417f3615 (patch)
tree1fe5af88afd9c8c5a49ab36af17fa3a4218bb1fd /libavfilter/vf_scale_cuda.h
parentb9973b72c0a904229318e4d549d17a1a774b8623 (diff)
downloadffmpeg-e645a1ddb90a863e129108aad9aa7e2d417f3615.tar.gz
libavfilter: vf_scale: Properly take in->color_range into account
While swscale can be reconfigured with sws_setColorspaceDetails, the in/out ranges also need to be set before calling sws_init_context, otherwise the initialization might choose fastpaths that don't take the ranges into account. Therefore, look at in->color_range too, when deciding on whether the scaler needs to be reconfigured. Add a new member variable for keeping track of this, for being able to differentiate between whether the scale filter parameter "in_range" has been set (which should override whatever the input frame has set) or whether it has been configured based on the latest frame (which should trigger reconfiguring the scaler if the input frame ranges change). Fixes: Ticket #9576 Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavfilter/vf_scale_cuda.h')
0 files changed, 0 insertions, 0 deletions