Mercurial > libavformat.hg
comparison rtpenc_xiph.c @ 6355:3aa7765383b5 libavformat
rtpenc_xiph: Set the ident value via a define
author | mstorsjo |
---|---|
date | Mon, 09 Aug 2010 10:31:59 +0000 |
parents | c0bd24801ac1 |
children | f8fe5baa8b47 |
comparison
equal
deleted
inserted
replaced
6354:c0bd24801ac1 | 6355:3aa7765383b5 |
---|---|
50 default: | 50 default: |
51 xdt = 0; // raw data payload | 51 xdt = 0; // raw data payload |
52 break; | 52 break; |
53 } | 53 } |
54 | 54 |
55 // Set ident. Must match the one in sdp.c | 55 // Set ident. |
56 // Probably need a non-fixed way of generating | 56 // Probably need a non-fixed way of generating |
57 // this, but it has to be done in SDP and passed in from there. | 57 // this, but it has to be done in SDP and passed in from there. |
58 q = s->buf; | 58 q = s->buf; |
59 *q++ = 0xfe; | 59 *q++ = (RTP_XIPH_IDENT >> 16) & 0xff; |
60 *q++ = 0xcd; | 60 *q++ = (RTP_XIPH_IDENT >> 8) & 0xff; |
61 *q++ = 0xba; | 61 *q++ = (RTP_XIPH_IDENT ) & 0xff; |
62 | 62 |
63 // set fragment | 63 // set fragment |
64 // 0 - whole frame (possibly multiple frames) | 64 // 0 - whole frame (possibly multiple frames) |
65 // 1 - first fragment | 65 // 1 - first fragment |
66 // 2 - fragment continuation | 66 // 2 - fragment continuation |