mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 14:44:17 +00:00
FSCORE-341
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12728 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
7b52ef1305
commit
523e0653ed
4 files changed
+26
-16
No files matched your search
@@ -290,10 +290,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_write(switch_file_handle_t *fh,
|
||||
fh->dbuf = switch_core_alloc(fh->memory_pool, fh->dbuflen);
|
||||
}
|
||||
switch_assert(fh->resampler->to_len <= fh->dbuflen);
|
||||
memcpy(fh->dbuf, fh->resampler->to, fh->resampler->to_len);
|
||||
memcpy(fh->dbuf, fh->resampler->to, fh->resampler->to_len * 2);
|
||||
data = fh->dbuf;
|
||||
} else {
|
||||
memcpy(data, fh->resampler->to, fh->resampler->to_len);
|
||||
memcpy(data, fh->resampler->to, fh->resampler->to_len * 2);
|
||||
}
|
||||
|
||||
*len = fh->resampler->to_len / fh->channels;
|
||||
|
||||
Reference in new issue
Block a user