mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 22:25:36 +01:00
rtp: Factorize the check for distinguishing RTCP packets from RTP
The binary doesn't change after this patch. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
@@ -266,7 +266,7 @@ static int rtp_write(URLContext *h, const uint8_t *buf, int size)
|
||||
int ret;
|
||||
URLContext *hd;
|
||||
|
||||
if (buf[1] >= RTCP_SR && buf[1] <= RTCP_APP) {
|
||||
if (RTP_PT_IS_RTCP(buf[1])) {
|
||||
/* RTCP payload type */
|
||||
hd = s->rtcp_hd;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user