mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 00:24:05 +00:00
fix MixMonitor crash (issue #6321, probably others)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@8437 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3830,7 +3830,7 @@ static void copy_data_from_queue(struct ast_channel_spy_queue *queue, short *buf
|
||||
}
|
||||
|
||||
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);
|
||||
samples -= tocopy;
|
||||
buf += tocopy;
|
||||
|
Reference in New Issue
Block a user