[FFmpeg-cvslog] rtpenc: Set the timestamp properly when sending mpegts data, too

Martin Storsjö git at videolan.org
Thu Dec 18 20:29:49 CET 2014


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Mon May  9 16:44:37 2011 +0300| [01f251c44d83eedc819625d2caac9ff9697a085d] | committer: Martin Storsjö

rtpenc: Set the timestamp properly when sending mpegts data, too

Signed-off-by: Martin Storsjö <martin at martin.st>

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

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

diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c
index 647a807..6262d55 100644
--- a/libavformat/rtpenc.c
+++ b/libavformat/rtpenc.c
@@ -452,6 +452,7 @@ static void rtp_send_mpegts_raw(AVFormatContext *s1,
     RTPMuxContext *s = s1->priv_data;
     int len, out_len;
 
+    s->timestamp = s->cur_timestamp;
     while (size >= TS_PACKET_SIZE) {
         len = s->max_payload_size - (s->buf_ptr - s->buf);
         if (len > size)



More information about the ffmpeg-cvslog mailing list