mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-05 21:55:37 +01:00
rtp: Replace hardcoded RTCP packet types with defines
Patch by Josh Allmann, joshua dot allmann at gmail Originally committed as revision 24912 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
committed by
Martin Storsjö
parent
d21caa952c
commit
7f3468d392
@@ -85,7 +85,7 @@ static int tcp_write_packet(AVFormatContext *s, RTSPStream *rtsp_st)
|
||||
size -= 4;
|
||||
if (packet_len > size || packet_len < 2)
|
||||
break;
|
||||
if (ptr[1] >= 200 && ptr[1] <= 204)
|
||||
if (ptr[1] >= RTCP_SR && ptr[1] <= RTCP_APP)
|
||||
id = rtsp_st->interleaved_max; /* RTCP */
|
||||
else
|
||||
id = rtsp_st->interleaved_min; /* RTP */
|
||||
|
||||
Reference in New Issue
Block a user