diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-12 19:28:08 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-12 19:28:08 +0200 |
commit | 2a622c2369e399907297465b14328b2389bb524c (patch) | |
tree | 7fb58f0a6b0e7653c6849cb11f04cd11c9bc9c2b | |
parent | 47695b1d65de52eed7cbceeaa0985fa36d8bc264 (diff) | |
download | ffmpeg-2a622c2369e399907297465b14328b2389bb524c.tar.gz |
lavf: add a "warning" when discarding a oddly backward subtitle or data starttime
Idea-by: ohsix
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 8d33f8dbf8..0567ec2cc2 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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) |