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:
Martin Storsjö
2010-08-09 10:31:59 +00:00
parent 62c7e2c336
commit b5c4bb989d
3 changed files with 13 additions and 7 deletions

View File

@@ -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)