aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtpenc_xiph.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-08-09 10:31:59 +0000
committerMartin Storsjö <martin@martin.st>2010-08-09 10:31:59 +0000
commitb5c4bb989d4085625f212b9b6378e4ee0a1a9ca8 (patch)
tree490860993ea617d2ab9374208af113fcfa83cfcb /libavformat/rtpenc_xiph.c
parent62c7e2c3364c232e04b694641d4a0611c700ee56 (diff)
downloadffmpeg-b5c4bb989d4085625f212b9b6378e4ee0a1a9ca8.tar.gz
rtpenc_xiph: Set the ident value via a define
Originally committed as revision 24749 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtpenc_xiph.c')
-rw-r--r--libavformat/rtpenc_xiph.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/rtpenc_xiph.c b/libavformat/rtpenc_xiph.c
index 82de5f8faf..10576c230e 100644
--- a/libavformat/rtpenc_xiph.c
+++ b/libavformat/rtpenc_xiph.c
@@ -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)