提交 f944bc7d authored 作者: Anthony Minessale's avatar Anthony Minessale 提交者: Mike Jerris

FS-9715 #resolve [Add support for m4a]

上级 8a6c4208
......@@ -1411,6 +1411,10 @@ static switch_status_t open_input_file(av_file_context_t *context, switch_file_h
}
}
if (!context->has_video) {
switch_clear_flag(handle, SWITCH_FILE_FLAG_VIDEO);
}
return status;
err:
......@@ -1843,7 +1847,6 @@ static switch_status_t av_file_open(switch_file_handle_t *handle, const char *pa
handle->speed = 0;
handle->pos = 0;
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Opening File [%s] %dhz %s\n",
file, handle->samplerate, switch_test_flag(handle, SWITCH_FILE_FLAG_VIDEO) ? " with VIDEO" : "");
......@@ -2489,6 +2492,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_avformat_load)
supported_formats[i++] = "av";
supported_formats[i++] = "rtmp";
supported_formats[i++] = "mp4";
supported_formats[i++] = "m4a";
supported_formats[i++] = "mov";
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论