summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuomas Virtanen <katajakasa@gmail.com>2018-11-15 01:52:10 +0200
committerTuomas Virtanen <katajakasa@gmail.com>2018-11-15 01:52:10 +0200
commitddae971916adc90e6afa2d3abedc4ad59b5cb944 (patch)
treeadf7898de514b367ff89fcde2a8e4440c3320fc4
parent4914f8e3f58d2f4605c79edb5aab86ee4f1b8994 (diff)
Fix minor issue in sound conversion
-rw-r--r--src/internal/audio/kitaudio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/audio/kitaudio.c b/src/internal/audio/kitaudio.c
index 33742d0..b2f41fc 100644
--- a/src/internal/audio/kitaudio.c
+++ b/src/internal/audio/kitaudio.c
@@ -214,7 +214,7 @@ static void dec_read_audio(Kit_Decoder *dec) {
len = swr_convert(
audio_dec->swr,
dst_data,
- audio_dec->scratch_frame->nb_samples,
+ dst_nb_samples,
(const unsigned char **)audio_dec->scratch_frame->extended_data,
audio_dec->scratch_frame->nb_samples);