[FFmpeg-devel] [PATCH] avformat/libsrt: Remove manually free AV_OPT_TYPE_STRING

Zhao Zhili quinkblack at foxmail.com
Thu Feb 15 04:15:08 EET 2024


From: Zhao Zhili <zhilizhao at tencent.com>

Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>
---
 libavformat/libsrt.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c
index 56acb6e741..a1d732f841 100644
--- a/libavformat/libsrt.c
+++ b/libavformat/libsrt.c
@@ -674,9 +674,6 @@ static int libsrt_open(URLContext *h, const char *uri, int flags)
     return 0;
 
 err:
-    av_freep(&s->smoother);
-    av_freep(&s->streamid);
-    av_freep(&s->passphrase);
     srt_cleanup();
     return ret;
 }
-- 
2.42.0



More information about the ffmpeg-devel mailing list