Browse Source

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

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n2.6
Martin Storsjö 14 years ago
parent
commit
01f251c44d
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/rtpenc.c

+ 1
- 0
libavformat/rtpenc.c View 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)


Loading…
Cancel
Save