Commit 2a622c23 authored by Michael Niedermayer's avatar Michael Niedermayer

lavf: add a "warning" when discarding a oddly backward subtitle or data starttime

Idea-by: ohsix
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 47695b1d
......@@ -2063,6 +2063,9 @@ static void update_stream_timings(AVFormatContext *ic)
}
if (start_time == INT64_MAX || (start_time > start_time_text && start_time - start_time_text < AV_TIME_BASE))
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);
if (start_time != INT64_MAX) {
ic->start_time = start_time;
if (end_time != INT64_MIN)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment