Mercurial > libavformat.hg
comparison rtpdec.c @ 6399:dda201b8a6f6 libavformat
Do not use the server SSRC as client SSRC in the RTP demuxer
author | lucabe |
---|---|
date | Mon, 23 Aug 2010 11:53:27 +0000 |
parents | 63e7b0fb1616 |
children | 37944ce385a0 |
comparison
equal
deleted
inserted
replaced
6398:8775d4c0e991 | 6399:dda201b8a6f6 |
---|---|
209 | 209 |
210 // Receiver Report | 210 // Receiver Report |
211 put_byte(pb, (RTP_VERSION << 6) + 1); /* 1 report block */ | 211 put_byte(pb, (RTP_VERSION << 6) + 1); /* 1 report block */ |
212 put_byte(pb, 201); | 212 put_byte(pb, 201); |
213 put_be16(pb, 7); /* length in words - 1 */ | 213 put_be16(pb, 7); /* length in words - 1 */ |
214 put_be32(pb, s->ssrc); // our own SSRC | 214 // our own SSRC: we use the server's SSRC + 1 to avoid conflicts |
215 put_be32(pb, s->ssrc); // XXX: should be the server's here! | 215 put_be32(pb, s->ssrc + 1); |
216 put_be32(pb, s->ssrc); // server SSRC | |
216 // some placeholders we should really fill... | 217 // some placeholders we should really fill... |
217 // RFC 1889/p64 | 218 // RFC 1889/p64 |
218 extended_max= stats->cycles + stats->max_seq; | 219 extended_max= stats->cycles + stats->max_seq; |
219 expected= extended_max - stats->base_seq + 1; | 220 expected= extended_max - stats->base_seq + 1; |
220 lost= expected - stats->received; | 221 lost= expected - stats->received; |