md5: change flags to match framemd5.
authorRonald S. Bultje <rsbultje@gmail.com>
Sat, 5 Sep 2015 11:11:28 +0000 (07:11 -0400)
committerRonald S. Bultje <rsbultje@gmail.com>
Sun, 6 Sep 2015 19:07:19 +0000 (15:07 -0400)
This prevents the following warning: "Application provided invalid, non
monotonically increasing dts to muxer in stream 0: 9 >= 9".

libavformat/md5enc.c

index 8e87f09..e1a5368 100644 (file)
@@ -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