[mod_av] fix record crash bug

This commit is contained in:
mangshe0 2020-08-27 09:49:50 +08:00 committed by Andrey Volk
parent ccce984602
commit fb0c46e5af
1 changed files with 1 additions and 1 deletions

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