avformat/mpsubdec: Check pts / duration before cast
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 28 Jul 2019 21:05:45 +0000 (23:05 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 23 Aug 2019 20:26:50 +0000 (22:26 +0200)
commit77abf3145344341ec850e05d25a849c6f76fffa5
tree77ef902181c7c104cbe6616a1264596ada0c5031
parent4d4734bdc881de3af0ebe5935890a81423c80fdf
avformat/mpsubdec: Check pts / duration before cast

Fixes: 3e+47 is outside the range of representable values of type 'int'
Fixes: 16057/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5691111307214848

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