aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_tpad.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2024-07-04 16:08:54 +0200
committerNiklas Haas <git@haasn.dev>2024-08-16 11:43:37 +0200
commit6b40be941a00b99fa895adcdffa5f638c739ecd1 (patch)
tree84f86e9585add628019dbdc2a9b2173e704a7edd /libavfilter/vf_tpad.c
parent5d964df5dab17e6d2ba145adff50658b8bee4636 (diff)
downloadffmpeg-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/vf_tpad.c')
0 files changed, 0 insertions, 0 deletions