提交 fe1a7583 authored 作者: Seven Du's avatar Seven Du

fix void * arithmatic warning

上级 b8b71760
...@@ -845,7 +845,7 @@ static switch_bool_t write_displace_callback(switch_media_bug_t *bug, void *user ...@@ -845,7 +845,7 @@ static switch_bool_t write_displace_callback(switch_media_bug_t *bug, void *user
} else { } else {
st = switch_core_file_read(&dh->fh, rframe->data, &len); st = switch_core_file_read(&dh->fh, rframe->data, &len);
if (len < rframe->samples) { if (len < rframe->samples) {
memset(rframe->data + len * 2, 0, rframe->datalen - len * 2); memset((char *)rframe->data + len * 2, 0, rframe->datalen - len * 2);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论