mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/utils: Check cur_dts in update_initial_timestamps() more
Fixes: runtime error: signed integer overflow: 18133149658382192 - -9223090561878065151 cannot be represented in type 'long long'
Fixes: crbug 831552
Reported-by: Matt Wolenetz <wolenetz@google.com>
Reviewed-by: Matt Wolenetz <wolenetz@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 37d46dc21d
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
cf321e93c4
commit
b591673c50
@ -937,6 +937,7 @@ static void update_initial_timestamps(AVFormatContext *s, int stream_index,
|
||||
if (st->first_dts != AV_NOPTS_VALUE ||
|
||||
dts == AV_NOPTS_VALUE ||
|
||||
st->cur_dts == AV_NOPTS_VALUE ||
|
||||
st->cur_dts < INT_MIN + RELATIVE_TS_BASE ||
|
||||
is_relative(dts))
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user