mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-29 02:42:21 +00:00
ffmpeg: fix integer overflows with sub->*display_time
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2cebd17e3f
commit
59975de777
4
ffmpeg.c
4
ffmpeg.c
@ -232,9 +232,9 @@ static void sub2video_update(InputStream *ist, AVSubtitle *sub)
|
||||
if (!frame)
|
||||
return;
|
||||
if (sub) {
|
||||
pts = av_rescale_q(sub->pts + sub->start_display_time * 1000,
|
||||
pts = av_rescale_q(sub->pts + sub->start_display_time * 1000LL,
|
||||
AV_TIME_BASE_Q, ist->st->time_base);
|
||||
end_pts = av_rescale_q(sub->pts + sub->end_display_time * 1000,
|
||||
end_pts = av_rescale_q(sub->pts + sub->end_display_time * 1000LL,
|
||||
AV_TIME_BASE_Q, ist->st->time_base);
|
||||
num_rects = sub->num_rects;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user