提交 fc708d12 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-10456: [mod_av] add wav support to mod_av as well as specifying audio_codec…

FS-10456: [mod_av] add wav support to mod_av as well as specifying audio_codec -- add av_record_audio_only param
上级 0d88d95f
......@@ -1908,7 +1908,7 @@ static switch_status_t av_file_open(switch_file_handle_t *handle, const char *pa
}
}
if (!strcasecmp(ext, "wav")) {
if (!strcasecmp(ext, "wav") || switch_true(switch_event_get_header(handle->params, "av_record_audio_only"))) {
context->has_video = 0;
switch_clear_flag(handle, SWITCH_FILE_FLAG_VIDEO);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论