[FFmpeg-devel] [PATCH 3/3] Don't forget to run SDP parsing callback for static RTP types

Andrey Utkin andrey.utkin at corp.bluecherry.net
Tue Dec 8 13:10:33 CET 2015


Signed-off-by: Andrey Utkin <andrey.utkin at corp.bluecherry.net>
---
 libavformat/rtsp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 39539e9..4c0a057 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -567,7 +567,7 @@ static void sdp_parse_line(AVFormatContext *s, SDPParseState *s1,
             // let dynamic protocol handlers have a stab at the line.
             get_word(buf1, sizeof(buf1), &p);
             payload_type = atoi(buf1);
-            if (s1->seen_rtpmap) {
+            if (s1->seen_rtpmap || payload_type < RTP_PT_PRIVATE) {
                 parse_fmtp(s, rt, payload_type, buf);
             } else {
                 s1->seen_fmtp = 1;
-- 
2.6.3



More information about the ffmpeg-devel mailing list