mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-15 18:38:11 +08:00
Fix the M bit for multi-packet NALs.
Patch by Yao Peter (peter AT yuvad DOT com) Originally committed as revision 18858 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -56,7 +56,7 @@ static void nal_send(AVFormatContext *s1, const uint8_t *buf, int size, int last
|
|||||||
}
|
}
|
||||||
s->buf[1] |= 1 << 6;
|
s->buf[1] |= 1 << 6;
|
||||||
memcpy(&s->buf[2], buf, size);
|
memcpy(&s->buf[2], buf, size);
|
||||||
ff_rtp_send_data(s1, s->buf, size + 2, 1);
|
ff_rtp_send_data(s1, s->buf, size + 2, last);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user