mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-18 17:41:53 +00:00
Merge pull request #823 from mangshe0/syb3
[mod_av] Fix record crash bug
This commit is contained in:
commit
dc388e9389
@ -382,7 +382,7 @@ static int mod_avformat_alloc_output_context2(AVFormatContext **avctx, AVOutputF
|
|||||||
#if (LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58,7,100))
|
#if (LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58,7,100))
|
||||||
av_strlcpy(s->filename, filename, sizeof(s->filename));
|
av_strlcpy(s->filename, filename, sizeof(s->filename));
|
||||||
#else
|
#else
|
||||||
s->url = strdup(filename);
|
s->url = av_strdup(filename);
|
||||||
switch_assert(s->url);
|
switch_assert(s->url);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user