diff mbox series

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

Message ID tencent_96A720389F962CCD0D20734DAF4FA3550D07@qq.com
State Accepted
Commit 4ea2b271eb58c05709e5fe53bf5642b33b7be6f4
Headers show
Series [FFmpeg-devel] avformat/libsrt: Remove manually free AV_OPT_TYPE_STRING | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Zhao Zhili Feb. 15, 2024, 2:15 a.m. UTC
From: Zhao Zhili <zhilizhao@tencent.com>

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

Comments

Anton Khirnov Feb. 16, 2024, 10:36 a.m. UTC | #1
Quoting Zhao Zhili (2024-02-15 03:15:08)
> From: Zhao Zhili <zhilizhao@tencent.com>
> 
> Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
> ---
>  libavformat/libsrt.c | 3 ---
>  1 file changed, 3 deletions(-)

Looks ok
diff mbox series

Patch

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