summaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_convolution_opencl.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <[email protected]>2023-03-12 22:35:20 +0100
committerAndreas Rheinhardt <[email protected]>2023-03-14 07:16:06 +0100
commit1091963d3898eac8aaf8402dc5a5f9867ba96bd1 (patch)
tree9fc331e4f6dd36514ea22abc7343774030144459 /libavfilter/vf_convolution_opencl.c
parent4175022bdb958597d8d73e803bc18d0da93c46c3 (diff)
avfilter/vf_ssim360: Use correct type in sizeof
SSIM360Context.ssim360_hist is an array of four pointers to double; so sizeof(*ssim360_hist[0]) (=sizeof(double)) is the correct size to use to calculate the amount of memory to allocate, not sizeof(*ssim360_hist) (which is sizeof(double*)). Use FF_ALLOCZ_TYPED_ARRAY to avoid this issue altogether. Fixes Coverity issue #1520671. Reviewed-by: Anton Khirnov <[email protected]> Reviewed-by: Jan Ekström <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]>
Diffstat (limited to 'libavfilter/vf_convolution_opencl.c')
0 files changed, 0 insertions, 0 deletions