diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-03-12 22:35:20 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-03-14 07:16:06 +0100 |
commit | 1091963d3898eac8aaf8402dc5a5f9867ba96bd1 (patch) | |
tree | 9fc331e4f6dd36514ea22abc7343774030144459 /libavcodec/mpc.h | |
parent | 4175022bdb958597d8d73e803bc18d0da93c46c3 (diff) | |
download | ffmpeg-1091963d3898eac8aaf8402dc5a5f9867ba96bd1.tar.gz |
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 <anton@khirnov.net>
Reviewed-by: Jan Ekström <jeebjp@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mpc.h')
0 files changed, 0 insertions, 0 deletions