]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_av] fix record crash bug 823/head
authormangshe0 <mangshe0@163.com>
Thu, 27 Aug 2020 01:49:50 +0000 (09:49 +0800)
committerAndrey Volk <andywolk@gmail.com>
Wed, 23 Dec 2020 16:15:41 +0000 (20:15 +0400)
src/mod/applications/mod_av/avformat.c

index b76fd599bce7c453e1e8c60b2b6581f64bff1d56..ae7d2e840cb8f8b1e99fb71a4c96cc5c30011d29 100644 (file)
@@ -382,7 +382,7 @@ static int mod_avformat_alloc_output_context2(AVFormatContext **avctx, AVOutputF
 #if (LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58,7,100))
                av_strlcpy(s->filename, filename, sizeof(s->filename));
 #else
-               s->url = strdup(filename);
+               s->url = av_strdup(filename);
                switch_assert(s->url);
 #endif
        }