mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 18:10:13 +01:00
rtpenc_xiph: Set the ident value via a define
Originally committed as revision 24749 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -52,13 +52,13 @@ void ff_rtp_send_xiph(AVFormatContext *s1, const uint8_t *buff, int size)
|
||||
break;
|
||||
}
|
||||
|
||||
// Set ident. Must match the one in sdp.c
|
||||
// Set ident.
|
||||
// Probably need a non-fixed way of generating
|
||||
// this, but it has to be done in SDP and passed in from there.
|
||||
q = s->buf;
|
||||
*q++ = 0xfe;
|
||||
*q++ = 0xcd;
|
||||
*q++ = 0xba;
|
||||
*q++ = (RTP_XIPH_IDENT >> 16) & 0xff;
|
||||
*q++ = (RTP_XIPH_IDENT >> 8) & 0xff;
|
||||
*q++ = (RTP_XIPH_IDENT ) & 0xff;
|
||||
|
||||
// set fragment
|
||||
// 0 - whole frame (possibly multiple frames)
|
||||
|
||||
Reference in New Issue
Block a user