avformat/utils: Avoid overflow in codec_info_duration computation for subtitles
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 9 Jun 2021 19:10:32 +0000 (21:10 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 12 Jun 2021 12:22:42 +0000 (14:22 +0200)
commitffe4851e2359e17c4406ab05e2e31fc7ef68de95
tree251306b0c58e9a492fd4134bdeace3bf0b3f0f8a
parentbf4e7ec8257fd24a12327c7fa14e322028250be4
avformat/utils: Avoid overflow in codec_info_duration computation for subtitles

Fixes: signed integer overflow: 9223126845747118112 - -2594073385365397472 cannot be represented in type 'long'
Fixes: 34936/clusterfuzz-testcase-minimized-ffmpeg_dem_MATROSKA_fuzzer-6739888002170880

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c