[FFmpeg-cvslog] lavf: add a "warning" when discarding a oddly backward subtitle or data starttime

Michael Niedermayer git at videolan.org
Tue Jun 12 19:31:58 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jun 12 19:28:08 2012 +0200| [2a622c2369e399907297465b14328b2389bb524c] | committer: Michael Niedermayer

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

Idea-by: ohsix
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2a622c2369e399907297465b14328b2389bb524c
---

 libavformat/utils.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 8d33f8d..0567ec2 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)



More information about the ffmpeg-cvslog mailing list