提交 d9eafdf0 authored 作者: Brian West's avatar Brian West

FS-6681: fix dup of audio/wav and add audio/x-wav

上级 ac265ce4
...@@ -2691,7 +2691,7 @@ static switch_status_t locate_url_file(http_file_context_t *context, const char ...@@ -2691,7 +2691,7 @@ static switch_status_t locate_url_file(http_file_context_t *context, const char
if (switch_strcasecmp_any(ct, "audio/mpeg", "audio/x-mpeg", "audio/mp3", "audio/x-mp3", "audio/mpeg3", if (switch_strcasecmp_any(ct, "audio/mpeg", "audio/x-mpeg", "audio/mp3", "audio/x-mp3", "audio/mpeg3",
"audio/x-mpeg3", "audio/mpg", "audio/x-mpg", "audio/x-mpegaudio", NULL)) { "audio/x-mpeg3", "audio/mpg", "audio/x-mpg", "audio/x-mpegaudio", NULL)) {
newext = "mp3"; newext = "mp3";
} else if (switch_strcasecmp_any(ct, "audio/wav", "audio/x-wave", "audio/wav", "audio/wave", NULL)) { } else if (switch_strcasecmp_any(ct, "audio/x-wav", "audio/x-wave", "audio/wav", "audio/wave", NULL)) {
newext = "wav"; newext = "wav";
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论