avformat/realtextdec: Check the pts difference before using it for the duration compu...
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 25 Apr 2021 18:45:10 +0000 (20:45 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Jun 2021 16:58:25 +0000 (18:58 +0200)
commitfe12aa689003db9b07a6e1b837031dcc57a71435
tree04930acc2c35970fbe12a2c87d0fac154454c1c5
parent1b865cc703d29cb307e1fa628aa02940d54eb42a
avformat/realtextdec: Check the pts difference before using it for the duration computation

Fixes: signed integer overflow: 5404200000 - -9223372031709351616 cannot be represented in type 'long'
Fixes: 29102/clusterfuzz-testcase-minimized-ffmpeg_dem_REALTEXT_fuzzer-6737340551790592

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