]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commitdiff
rate converter fix (malc)
authorbellard <bellard>
Tue, 4 Jul 2006 16:47:58 +0000 (16:47 +0000)
committerbellard <bellard>
Tue, 4 Jul 2006 16:47:58 +0000 (16:47 +0000)
audio/rate_template.h

index 3e0e77c94e7637b09834ccb3d17e2f8224ccee72..398d305e9201ae4a04bdd59fea597fc6205d24e2 100644 (file)
@@ -51,7 +51,7 @@ void NAME (void *opaque, st_sample_t *ibuf, st_sample_t *obuf,
     if (rate->opos_inc == (1ULL + UINT_MAX)) {
         int i, n = *isamp > *osamp ? *osamp : *isamp;
         for (i = 0; i < n; i++) {
-            OP (obuf[i].l, ibuf[i].r);
+            OP (obuf[i].l, ibuf[i].l);
             OP (obuf[i].r, ibuf[i].r);
         }
         *isamp = n;