diff options
author | Martin Storsjö <martin@martin.st> | 2014-12-12 18:57:38 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2014-12-18 11:59:19 +0200 |
commit | 42181740a3972e17d0097d28fabc9a1a60322d47 (patch) | |
tree | 9bb872e9ca6977c603f8cf5993ad2c8635bbff98 | |
parent | 01f251c44d83eedc819625d2caac9ff9697a085d (diff) | |
download | ffmpeg-42181740a3972e17d0097d28fabc9a1a60322d47.tar.gz |
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>
-rw-r--r-- | libavformat/rtpenc.c | 1 |
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, }; |