]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtsp.c
rmdec: when using INT4 deinterleaving, error out if sub_packet_h <= 1.
[ffmpeg] / libavformat / rtsp.c
index f8611deed2cd6d553ecc945652ca680530531e61..359d91007659355f690f8b3cd1cd952edf76dcb3 100644 (file)
@@ -1927,7 +1927,7 @@ static int rtp_read_header(AVFormatContext *s)
             continue;
         }
 
-        if (recvbuf[1] >= RTCP_SR && recvbuf[1] <= RTCP_APP)
+        if (RTP_PT_IS_RTCP(recvbuf[1]))
             continue;
 
         payload_type = recvbuf[1] & 0x7f;