diff rtpenc.c @ 6404:37944ce385a0 libavformat

rtp: Replace hardcoded RTCP packet types with defines Patch by Josh Allmann, joshua dot allmann at gmail
author mstorsjo
date Wed, 25 Aug 2010 09:15:31 +0000
parents 0bcd6a8bc5d5
children f06908662125
line wrap: on
line diff
--- a/rtpenc.c	Tue Aug 24 15:08:53 2010 +0000
+++ b/rtpenc.c	Wed Aug 25 09:15:31 2010 +0000
@@ -191,7 +191,7 @@
     rtp_ts = av_rescale_q(ntp_time - s->first_rtcp_ntp_time, (AVRational){1, 1000000},
                           s1->streams[0]->time_base) + s->base_timestamp;
     put_byte(s1->pb, (RTP_VERSION << 6));
-    put_byte(s1->pb, 200);
+    put_byte(s1->pb, RTCP_SR);
     put_be16(s1->pb, 6); /* length in words - 1 */
     put_be32(s1->pb, s->ssrc);
     put_be32(s1->pb, ntp_time / 1000000);