FSCORE-341

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12728 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2009-03-24 14:54:13 +00:00
1 parent 7b52ef1305
commit 523e0653ed
4 files changed
+26 -16

No files matched your search

+2 -2
View File
@@ -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;