[FFmpeg-devel] [PATCH] md5: change flags to match framemd5.

Ronald S. Bultje rsbultje at gmail.com
Sat Sep 5 13:11:39 CEST 2015


This prevents the following warning: "Application provided invalid, non
monotonically increasing dts to muxer in stream 0: 9 >= 9".
---
 libavformat/md5enc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/md5enc.c b/libavformat/md5enc.c
index 8e87f09..e1a5368 100644
--- a/libavformat/md5enc.c
+++ b/libavformat/md5enc.c
@@ -107,7 +107,8 @@ AVOutputFormat ff_md5_muxer = {
     .write_header      = write_header,
     .write_packet      = write_packet,
     .write_trailer     = write_trailer,
-    .flags             = AVFMT_NOTIMESTAMPS,
+    .flags             = AVFMT_VARIABLE_FPS | AVFMT_TS_NONSTRICT |
+                         AVFMT_TS_NEGATIVE,
     .priv_class        = &md5enc_class,
 };
 #endif
-- 
2.1.2



More information about the ffmpeg-devel mailing list