mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-24 02:09:03 +03:00
avformat/realtextdec: keep the window duration in 64 bits
This is not a security issue. Fixes: GJrBZmxJqqm8 Fixes: swarm-Integer-truncation-of-parsed-duration-and-timestamps-1a4b12 Found-by: zhang xingxing <2388969553@qq.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
michaelni
parent
5ef923d052
commit
ec60a0b5d8
@@ -64,7 +64,8 @@ static int realtext_read_header(AVFormatContext *s)
|
||||
AVStream *st = avformat_new_stream(s, NULL);
|
||||
AVBPrint buf;
|
||||
char c = 0;
|
||||
int res = 0, duration = read_ts("60"); // default duration is 60 seconds
|
||||
int res = 0;
|
||||
int64_t duration = read_ts("60"); // default duration is 60 seconds
|
||||
FFTextReader tr;
|
||||
ff_text_init_avio(s, &tr, s->pb);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user