[PULL,3/6] audio: consistency changes
diff mbox series

Message ID 20200316113015.28013-4-kraxel@redhat.com
State New
Headers show
Series
  • [PULL,1/6] qapi/audio: add documentation for AudioFormat
Related show

Commit Message

Gerd Hoffmann March 16, 2020, 11:30 a.m. UTC
From: Volker RĂ¼melin <vr_qemu@t-online.de>

Change the clip_natural_float_from_mono() function in
audio/mixeng.c to be consistent with the clip_*_from_mono()
functions in audio/mixeng_template.h.

Signed-off-by: Volker RĂ¼melin <vr_qemu@t-online.de>
Message-id: 20200308193321.20668-3-vr_qemu@t-online.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 audio/mixeng.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/audio/mixeng.c b/audio/mixeng.c
index b57fad83bf3b..725b529be7da 100644
--- a/audio/mixeng.c
+++ b/audio/mixeng.c
@@ -316,7 +316,7 @@  static void clip_natural_float_from_mono(void *dst, const struct st_sample *src,
     float *out = (float *)dst;
 
     while (samples--) {
-        *out++ = CLIP_NATURAL_FLOAT(src->l) + CLIP_NATURAL_FLOAT(src->r);
+        *out++ = CLIP_NATURAL_FLOAT(src->l + src->r);
         src++;
     }
 }