You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
rtpenc: Set the timestamp properly when sending mpegts data, too
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
@@ -452,6 +452,7 @@ static void rtp_send_mpegts_raw(AVFormatContext *s1,
|
|||||||
RTPMuxContext *s = s1->priv_data;
|
RTPMuxContext *s = s1->priv_data;
|
||||||
int len, out_len;
|
int len, out_len;
|
||||||
|
|
||||||
|
s->timestamp = s->cur_timestamp;
|
||||||
while (size >= TS_PACKET_SIZE) {
|
while (size >= TS_PACKET_SIZE) {
|
||||||
len = s->max_payload_size - (s->buf_ptr - s->buf);
|
len = s->max_payload_size - (s->buf_ptr - s->buf);
|
||||||
if (len > size)
|
if (len > size)
|
||||||
|
Reference in New Issue
Block a user