]> git.sesse.net Git - ffmpeg/commitdiff
rtpenc: Set the timestamp properly when sending mpegts data, too
authorMartin Storsjö <martin@martin.st>
Mon, 9 May 2011 13:44:37 +0000 (16:44 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 18 Dec 2014 09:59:12 +0000 (11:59 +0200)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpenc.c

index 647a8073b7f5b570fc2debd2bd7764437b45bb60..6262d55724d41add50cb98d79a326ba97df9140e 100644 (file)
@@ -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)