[FFmpeg-cvslog] rtpenc: Set the AVFMT_TS_NONSTRICT flag

Martin Storsjö git at videolan.org
Thu Dec 18 20:38:10 CET 2014


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Fri Dec 12 18:57:38 2014 +0200| [42181740a3972e17d0097d28fabc9a1a60322d47] | committer: Martin Storsjö

rtpenc: Set the AVFMT_TS_NONSTRICT flag

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 at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=42181740a3972e17d0097d28fabc9a1a60322d47
---

 libavformat/rtpenc.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c
index 6262d55..dafe3a0 100644
--- a/libavformat/rtpenc.c
+++ b/libavformat/rtpenc.c
@@ -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,
 };



More information about the ffmpeg-cvslog mailing list