From: mangshe0 Date: Thu, 27 Aug 2020 01:49:50 +0000 (+0800) Subject: [mod_av] fix record crash bug X-Git-Tag: v1.10.6^2~105^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb0c46e5af65758c93de3ee7766f51b31c489210;p=thirdparty%2Ffreeswitch.git [mod_av] fix record crash bug --- diff --git a/src/mod/applications/mod_av/avformat.c b/src/mod/applications/mod_av/avformat.c index b76fd599bc..ae7d2e840c 100644 --- a/src/mod/applications/mod_av/avformat.c +++ b/src/mod/applications/mod_av/avformat.c @@ -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 }