Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-02-21 20:27:37 +0400
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-02-21 20:27:37 +0400
commitf5fe6a4f79fafbe6a9ec0c40fc3f38f9f2279c8a (patch)
tree38b10de4a2fe1ac1445cf06266c5bedf37a38de6 /libavformat
parent1f7e9be0b034b31617c94b6f7f37a350b9f43c88 (diff)
Do not warn about missing start time for unknown streams.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c4
1 files changed, 3 insertions, 1 deletions
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");