rtpenc: Set the AVFMT_TS_NONSTRICT flag
authorMartin Storsjö <martin@martin.st>
Fri, 12 Dec 2014 16:57:38 +0000 (18:57 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 18 Dec 2014 09:59:19 +0000 (11:59 +0200)
In particular, when packetizing mpegts into rtp, the input packet
timestamp may come from more than one stream, which could cause
multiple packets be written with the same timestamp.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpenc.c

index 6262d55..dafe3a0 100644 (file)
@@ -632,4 +632,5 @@ AVOutputFormat ff_rtp_muxer = {
     .write_packet      = rtp_write_packet,
     .write_trailer     = rtp_write_trailer,
     .priv_class        = &rtp_muxer_class,
+    .flags             = AVFMT_TS_NONSTRICT,
 };