From 42181740a3972e17d0097d28fabc9a1a60322d47 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Fri, 12 Dec 2014 18:57:38 +0200 Subject: rtpenc: Set the AVFMT_TS_NONSTRICT flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ö --- libavformat/rtpenc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/rtpenc.c') diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c index 6262d55724..dafe3a0a70 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, }; -- cgit v1.2.3