diff --git a/libavformat/img2.c b/libavformat/img2.c
index c146d8a67a2850590b8cf48e6a0c20d29ee74e7e..f15a6da62e1d5294931227cab8edbdfabf4de8eb 100644
--- a/libavformat/img2.c
+++ b/libavformat/img2.c
@@ -409,7 +409,7 @@ AVOutputFormat image2_muxer = {
     img_write_header,
     img_write_packet,
     NULL,
-    AVFMT_NOFILE,
+    .flags= AVFMT_NOTIMESTAMPS | AVFMT_NOFILE
 };
 #endif
 #ifdef CONFIG_IMAGE2PIPE_MUXER
@@ -423,5 +423,6 @@ AVOutputFormat image2pipe_muxer = {
     CODEC_ID_MJPEG,
     img_write_header,
     img_write_packet,
+    .flags= AVFMT_NOTIMESTAMPS
 };
 #endif