diff options
Diffstat (limited to 'toxav/toxav.c')
-rw-r--r-- | toxav/toxav.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/toxav/toxav.c b/toxav/toxav.c index 62fed33f..9febd3a9 100644 --- a/toxav/toxav.c +++ b/toxav/toxav.c | |||
@@ -700,9 +700,8 @@ bool toxav_send_audio_frame(ToxAV* av, uint32_t friend_number, const int16_t* pc | |||
700 | goto END; | 700 | goto END; |
701 | } | 701 | } |
702 | 702 | ||
703 | |||
704 | LOGGER_DEBUG("Sending audio frame size: %d; channels: %d; srate: %d", sample_count, channels, sampling_rate); | 703 | LOGGER_DEBUG("Sending audio frame size: %d; channels: %d; srate: %d", sample_count, channels, sampling_rate); |
705 | uint8_t dest[sample_count * channels * 2 /* sizeof(uint16_t) */]; | 704 | uint8_t dest[sample_count * channels * sizeof(int16_t)]; |
706 | int vrc = opus_encode(call->cs->audio_encoder, pcm, sample_count, dest, sizeof (dest)); | 705 | int vrc = opus_encode(call->cs->audio_encoder, pcm, sample_count, dest, sizeof (dest)); |
707 | 706 | ||
708 | if (vrc < 0) { | 707 | if (vrc < 0) { |