mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-24 21:50:53 +00:00
Merged revisions 8437 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r8437 | russell | 2006-01-22 12:47:13 -0500 (Sun, 22 Jan 2006) | 2 lines fix MixMonitor crash (issue #6321, probably others) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8438 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3911,7 +3911,7 @@ static void copy_data_from_queue(struct ast_channel_spy_queue *queue, short *buf
|
|||||||
}
|
}
|
||||||
|
|
||||||
tocopy = (f->samples > samples) ? samples : f->samples;
|
tocopy = (f->samples > samples) ? samples : f->samples;
|
||||||
bytestocopy = ast_codec_get_len(queue->format, samples);
|
bytestocopy = ast_codec_get_len(queue->format, tocopy);
|
||||||
memcpy(buf, f->data, bytestocopy);
|
memcpy(buf, f->data, bytestocopy);
|
||||||
samples -= tocopy;
|
samples -= tocopy;
|
||||||
buf += tocopy;
|
buf += tocopy;
|
||||||
|
|||||||
Reference in New Issue
Block a user