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

@ -267,9 +267,9 @@ static char *xiph_extradata2config(AVCodecContext *c)
config[0] = config[1] = config[2] = 0;
config[3] = 1;
config[4] = 0xfe; // ident must match the one in rtpenc_xiph.c
config[5] = 0xcd;
config[6] = 0xba;
config[4] = (RTP_XIPH_IDENT >> 16) & 0xff;
config[5] = (RTP_XIPH_IDENT >> 8) & 0xff;
config[6] = (RTP_XIPH_IDENT ) & 0xff;
config[7] = (headers_len >> 8) & 0xff;
config[8] = headers_len & 0xff;
config[9] = 2;