[FFmpeg-cvslog] Do not warn about missing start time for unknown streams.

Carl Eugen Hoyos git at videolan.org
Fri Feb 21 18:58:07 CET 2014


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Feb 21 17:27:37 2014 +0100| [f5fe6a4f79fafbe6a9ec0c40fc3f38f9f2279c8a] | committer: Carl Eugen Hoyos

Do not warn about missing start time for unknown streams.

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

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

diff --git a/libavformat/utils.c b/libavformat/utils.c
index b5c5e90..04c10a0 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2382,7 +2382,9 @@ static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset)
 
     for (i = 0; i < ic->nb_streams; i++) {
         st = ic->streams[i];
-        if (st->start_time == AV_NOPTS_VALUE && st->first_dts == AV_NOPTS_VALUE)
+        if (st->start_time == AV_NOPTS_VALUE &&
+            st->first_dts == AV_NOPTS_VALUE &&
+            st->codec->codec_type != AVMEDIA_TYPE_UNKNOWN)
             av_log(st->codec, AV_LOG_WARNING,
                    "start time is not set in estimate_timings_from_pts\n");
 



More information about the ffmpeg-cvslog mailing list