From f5fe6a4f79fafbe6a9ec0c40fc3f38f9f2279c8a Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Fri, 21 Feb 2014 17:27:37 +0100 Subject: [PATCH] Do not warn about missing start time for unknown streams. --- libavformat/utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index b5c5e9015b..04c10a072d 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");