1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00
FFmpeg/libavfilter
Andreas Rheinhardt 1091963d38 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>
2023-03-14 07:16:06 +01:00
..
2022-07-07 17:52:32 +02:00
2022-12-19 20:43:58 +01:00
2022-07-30 11:42:06 +02:00
2022-07-30 11:42:06 +02:00
2022-12-08 13:03:42 +01:00
2022-10-04 11:55:03 +02:00
2022-11-09 17:39:00 +01:00
2023-02-14 19:09:19 +00:00