]> git.proxmox.com Git - mirror_qemu.git/commitdiff
audio: consistency changes
authorVolker Rümelin <vr_qemu@t-online.de>
Sun, 8 Mar 2020 19:33:18 +0000 (20:33 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 16 Mar 2020 09:18:07 +0000 (10:18 +0100)
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

index b57fad83bf3b3e4d801e0c79f6fc35e241945bc8..725b529be7da2d586cc8d81e7a27a992967c6d81 100644 (file)
@@ -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++;
     }
 }