mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-28 19:22:02 +08:00
avformat/utils: avoid undefined integer overflow behavior in update_stream_timings()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
eb350ab738
commit
5ecd580953
@@ -2666,7 +2666,7 @@ static void update_stream_timings(AVFormatContext *ic)
|
|||||||
duration = FFMAX(duration, duration1);
|
duration = FFMAX(duration, duration1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (start_time == INT64_MAX || (start_time > start_time_text && start_time - start_time_text < AV_TIME_BASE))
|
if (start_time == INT64_MAX || (start_time > start_time_text && start_time - (uint64_t)start_time_text < AV_TIME_BASE))
|
||||||
start_time = start_time_text;
|
start_time = start_time_text;
|
||||||
else if (start_time > start_time_text)
|
else if (start_time > start_time_text)
|
||||||
av_log(ic, AV_LOG_VERBOSE, "Ignoring outlier non primary stream starttime %f\n", start_time_text / (float)AV_TIME_BASE);
|
av_log(ic, AV_LOG_VERBOSE, "Ignoring outlier non primary stream starttime %f\n", start_time_text / (float)AV_TIME_BASE);
|
||||||
|
|||||||
Reference in New Issue
Block a user