From: Limin Wang <lance.lmw...@gmail.com>

Signed-off-by: Limin Wang <lance.lmw...@gmail.com>
---
 libavformat/libsrt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c
index 2fc6328c4e..2105317545 100644
--- a/libavformat/libsrt.c
+++ b/libavformat/libsrt.c
@@ -493,6 +493,7 @@ static int libsrt_open(URLContext *h, const char *uri, int 
flags)
             s->pbkeylen = strtol(buf, NULL, 10);
         }
         if (av_find_info_tag(buf, sizeof(buf), "passphrase", p)) {
+            av_freep(&s->passphrase);
             s->passphrase = av_strndup(buf, strlen(buf));
         }
         if (av_find_info_tag(buf, sizeof(buf), "mss", p)) {
-- 
2.21.0

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to