[FFmpeg-devel] [PATCH] avformat/rtpproto: free ip filters on open error

Kacper Michajłow kasper93 at gmail.com
Fri May 10 05:07:40 EEST 2024


Found by OSS-Fuzz.

Signed-off-by: Kacper Michajłow <kasper93 at gmail.com>
---
 libavformat/rtpproto.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c
index b1cdf061f0..15d0050936 100644
--- a/libavformat/rtpproto.c
+++ b/libavformat/rtpproto.c
@@ -379,6 +379,7 @@ static int rtp_open(URLContext *h, const char *uri, int flags)
     return 0;
 
  fail:
+    ff_ip_reset_filters(&s->filters);
     ffurl_closep(&s->rtp_hd);
     ffurl_closep(&s->rtcp_hd);
     ffurl_closep(&s->fec_hd);
-- 
2.43.0



More information about the ffmpeg-devel mailing list