avcodec/apedec: Change avg to uint32_t
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 3 Dec 2021 16:58:50 +0000 (17:58 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 9 Dec 2021 12:27:23 +0000 (13:27 +0100)
commit0ec75723a484405eb2f2ec2f9e58161b168ed8b0
tree0bf9a17f9b871c8a78046915cb5e187065a45970
parent1e85a698c01133a7f8d35502d5901e3b65fa3317
avcodec/apedec: Change avg to uint32_t

Fixes: Integer overflow
Fixes: 40973/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-6739312704618496

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Suggested-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/apedec.c