提交 0874db56 authored 作者: Anthony Minessale's avatar Anthony Minessale

fix vid issue

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8267 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 c0783a5a
......@@ -1276,6 +1276,7 @@ SWITCH_DECLARE(int) switch_loadable_module_get_codecs_sorted(const switch_codec_
for (imp = codec_interface->implementations; imp; imp = imp->next) {
uint8_t match = 1;
if (imp->codec_type != SWITCH_CODEC_TYPE_VIDEO) {
if ((uint32_t) (imp->microseconds_per_frame / 1000) != 20) {
match = 0;
}
......@@ -1283,6 +1284,7 @@ SWITCH_DECLARE(int) switch_loadable_module_get_codecs_sorted(const switch_codec_
if (match && rate && (uint32_t) imp->samples_per_second != rate) {
match = 0;
}
}
if (match) {
array[i++] = imp;
......@@ -1295,6 +1297,7 @@ SWITCH_DECLARE(int) switch_loadable_module_get_codecs_sorted(const switch_codec_
for (imp = codec_interface->implementations; imp; imp = imp->next) {
uint8_t match = 1;
if (imp->codec_type != SWITCH_CODEC_TYPE_VIDEO) {
if (interval && (uint32_t) (imp->microseconds_per_frame / 1000) != interval) {
match = 0;
}
......@@ -1302,6 +1305,7 @@ SWITCH_DECLARE(int) switch_loadable_module_get_codecs_sorted(const switch_codec_
if (match && rate && (uint32_t) imp->samples_per_second != rate) {
match = 0;
}
}
if (match) {
array[i++] = imp;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论