avformat/subtitles: Check pts difference before use
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 25 Apr 2021 17:49:14 +0000 (19:49 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Jun 2021 16:58:25 +0000 (18:58 +0200)
commite7a990164f67108e99ec5adb8b2d636cd4147715
tree11e395cba3583bc51e7450af9308406a401a22bb
parent8ef25d118246bf443900033fb3588dba628d11b0
avformat/subtitles: Check pts difference before use

Fixes: signed integer overflow: 0 - -9223372036854775808 cannot be represented in type 'long'
Fixes: 29102/clusterfuzz-testcase-minimized-ffmpeg_dem_MPL2_fuzzer-6747053545881600

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