提交 e8e2bf0e authored 作者: Michael Jerris's avatar Michael Jerris

fix msvc 2005 build warnings

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12131 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 ca234fe1
...@@ -220,7 +220,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_read(switch_file_handle_t *fh, ...@@ -220,7 +220,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_read(switch_file_handle_t *fh,
} }
} }
switch_resample_process(fh->resampler, data, *len); switch_resample_process(fh->resampler, data, (uint32_t)*len);
if (fh->resampler->to_len < want || fh->resampler->to_len > orig_len) { if (fh->resampler->to_len < want || fh->resampler->to_len > orig_len) {
if (!fh->buffer) { if (!fh->buffer) {
...@@ -279,7 +279,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_write(switch_file_handle_t *fh, ...@@ -279,7 +279,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_write(switch_file_handle_t *fh,
return SWITCH_STATUS_GENERR; return SWITCH_STATUS_GENERR;
} }
} }
switch_resample_process(fh->resampler, data, *len * fh->channels); switch_resample_process(fh->resampler, data, (uint32_t)(*len * fh->channels));
if (fh->resampler->to_len > orig_len * fh->channels) { if (fh->resampler->to_len > orig_len * fh->channels) {
if (!fh->dbuf) { if (!fh->dbuf) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论