From fc708d12568ef1036c8b565a4193f99db3bdd11f Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 30 Jun 2017 12:38:03 -0500 Subject: [PATCH] FS-10456: [mod_av] add wav support to mod_av as well as specifying audio_codec -- add av_record_audio_only param --- src/mod/applications/mod_av/avformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_av/avformat.c b/src/mod/applications/mod_av/avformat.c index 663ae0b426..a0a6f19b87 100644 --- a/src/mod/applications/mod_av/avformat.c +++ b/src/mod/applications/mod_av/avformat.c @@ -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); }