From 8afa03a5f682cec9925b302a092d66a0532ae328 Mon Sep 17 00:00:00 2001 From: Limin Wang Date: Wed, 29 Apr 2020 07:49:24 +0800 Subject: [PATCH] avformat/utils: change the duration to int64_t for update_initial_durations Reviewed-by: Michael Niedermayer Signed-off-by: Limin Wang --- libavformat/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 3b53f97bee..44109d866d 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1174,7 +1174,7 @@ static void update_initial_timestamps(AVFormatContext *s, int stream_index, } static void update_initial_durations(AVFormatContext *s, AVStream *st, - int stream_index, int duration) + int stream_index, int64_t duration) { AVPacketList *pktl = s->internal->packet_buffer ? s->internal->packet_buffer : s->internal->parse_queue; int64_t cur_dts = RELATIVE_TS_BASE;