diff mbox series

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

Message ID 20210417165528.79321-3-sunml@epoint.com.cn
State New
Headers show
Series [FFmpeg-devel,v1,1/3] libavformat/rtsp.h : Add member ignore_rtcp to RTSPState
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

minlei sun April 17, 2021, 4:55 p.m. UTC
From: Minlei Sun <sunml@epoint.com.cn>

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

Patch

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;
 }