[FFmpeg-devel] [PATCH v1 3/3] libavformat/rtspdec.c : Implement ignore_rtcp code

sunml at epoint.com.cn sunml at epoint.com.cn
Sat Apr 17 19:55:28 EEST 2021


From: Minlei Sun <sunml at epoint.com.cn>

Signed-off-by: Minlei Sun <sunml at epoint.com.cn>
---
 libavformat/rtspdec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c
index 113da975e1..1d5e674149 100644
--- a/libavformat/rtspdec.c
+++ b/libavformat/rtspdec.c
@@ -817,6 +817,8 @@ redo:
     }
     goto redo;
 found:
+    if (rt->ignore_rtcp && (id == 1 || id == 3 ))
+        goto redo;
     *prtsp_st = rtsp_st;
     return len;
 }
-- 
2.24.3 (Apple Git-128)



More information about the ffmpeg-devel mailing list