summaryrefslogtreecommitdiff
path: root/libavformat/mux.c
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2016-11-12 18:01:52 -0600
committerRodger Combs <rodger.combs@gmail.com>2016-11-14 01:45:02 -0600
commitf8e3ebde56e8f6ad88fc747d6cf29819c4bb0026 (patch)
treea886a19a1e3e8f9fa80135ad4ec876dcff2d8fcd /libavformat/mux.c
parentdc23e359ef708b6e2c5fecd4b3c019bab85d102d (diff)
lavf/mux: don't warn about missing timestamps on attached pictures
Diffstat (limited to 'libavformat/mux.c')
-rw-r--r--libavformat/mux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c
index 4d47ddcbde..e500531789 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -575,6 +575,7 @@ static int compute_muxer_pkt_fields(AVFormatContext *s, AVStream *st, AVPacket *
if (!s->internal->missing_ts_warning &&
!(s->oformat->flags & AVFMT_NOTIMESTAMPS) &&
+ (!(st->disposition & AV_DISPOSITION_ATTACHED_PIC) || (st->disposition & AV_DISPOSITION_TIMED_THUMBNAILS)) &&
(pkt->pts == AV_NOPTS_VALUE || pkt->dts == AV_NOPTS_VALUE)) {
av_log(s, AV_LOG_WARNING,
"Timestamps are unset in a packet for stream %d. "