diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-12 02:11:02 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-12 02:23:48 +0200 |
commit | 59975de77741766df4cc48c66bc151a6c31f9291 (patch) | |
tree | 28f4bef954c991566d88f21b106e222979b420b2 | |
parent | 2cebd17e3f87c4f5706ccbb5613c658b5f39609a (diff) | |
download | ffmpeg-59975de77741766df4cc48c66bc151a6c31f9291.tar.gz |
ffmpeg: fix integer overflows with sub->*display_time
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |