diff options
author | Niklas Haas <git@haasn.dev> | 2024-07-04 16:08:54 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2024-08-16 11:43:37 +0200 |
commit | 6b40be941a00b99fa895adcdffa5f638c739ecd1 (patch) | |
tree | 84f86e9585add628019dbdc2a9b2173e704a7edd /libavfilter/cuda | |
parent | 5d964df5dab17e6d2ba145adff50658b8bee4636 (diff) | |
download | ffmpeg-6b40be941a00b99fa895adcdffa5f638c739ecd1.tar.gz |
swscale/options: relax src/dst_h/v_chr_pos value range
When dealing with 4x subsampling ratios (log2 == 2), such as can arise
with 4:1:1 or 4:1:0, a value range of 512 is not enough to cover the
range of possible scenarios.
For example, bottom-sited chroma in 4:1:0 would require an offset of 768
(three luma rows). Simply double the limit to 1024. I don't see any
place in initFilter() that would experience overflow as a result of this
change, especially since get_local_pos() right-shifts it by the
subsampling ratio again.
Diffstat (limited to 'libavfilter/cuda')
0 files changed, 0 insertions, 0 deletions