summaryrefslogtreecommitdiff
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2015-01-05 15:07:01 +0200
committerMartin Storsjö <martin@martin.st>2015-01-06 19:47:09 +0200
commite581e88cbdb3323ca0026a54b39a9716a3686e9f (patch)
tree97bddf278b035146640387ffacb7b4332f669a8c /libavformat/movenc.c
parent8e03ca2fff40ce065ea5a516200e777c96cd785e (diff)
movenc: Readd an accidentally removed condition
This was removed accidentally as part of 847bf598. This could cause groundless warning logging. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 72da0101f9..58ff6ad7cc 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3372,7 +3372,7 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt)
trk->frag_start = pkt->dts;
trk->start_dts = 0;
trk->frag_discont = 0;
- } else if (mov->fragments >= 1)
+ } else if (pkt->dts && mov->fragments >= 1)
av_log(s, AV_LOG_WARNING,
"Track %d starts with a nonzero dts %"PRId64", while the moov "
"already has been written. Set the delay_moov flag to handle "