summaryrefslogtreecommitdiff
path: root/libavformat/rtpenc.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2014-12-12 18:57:38 +0200
committerMartin Storsjö <martin@martin.st>2014-12-18 11:59:19 +0200
commit42181740a3972e17d0097d28fabc9a1a60322d47 (patch)
tree9bb872e9ca6977c603f8cf5993ad2c8635bbff98 /libavformat/rtpenc.c
parent01f251c44d83eedc819625d2caac9ff9697a085d (diff)
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@martin.st>
Diffstat (limited to 'libavformat/rtpenc.c')
-rw-r--r--libavformat/rtpenc.c1
1 files changed, 1 insertions, 0 deletions
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,
};