[MPlayer-dev-eng] Re: Another likely bug: libac3/imdct.c line 585 or so, etc...
Stephen Davies
steve at daviesfam.org
Mon Nov 26 16:22:36 CET 2001
On Mon, 26 Nov 2001, Stephen Davies wrote:
> Where imdct.c is downmixing to stereo post idct, this code appears
> for case "7" (3/2 format):
Here's a patch. Hope the offsets are right...
Steve
-------------- next part --------------
RCS file: /cvsroot/mplayer/main/libac3/imdct.c,v
retrieving revision 1.8
diff -u -r1.8 imdct.c
--- libac3/imdct.c 10 Jul 2001 08:27:49 -0000 1.8
+++ libac3/imdct.c 26 Nov 2001 15:18:52 -0000
@@ -588,7 +588,7 @@
*s16_samples++ = (int16_t)(left_tmp + *delay_left);
*s16_samples++ = (int16_t)(right_tmp + *delay_right);
*delay_left++ = dm_par->unit * *delay1_left++ + dm_par->clev * *delay1_center + dm_par->slev * *delay1_sl++;
- *delay_right++ = dm_par->unit * *delay1_right++ + dm_par->clev * *center++ + dm_par->slev * *delay1_sr++;
+ *delay_right++ = dm_par->unit * *delay1_right++ + dm_par->clev * *delay1_center++ + dm_par->slev * *delay1_sr++;
}
break;
case 6: // 2/2
@@ -630,7 +630,7 @@
*s16_samples++ = (int16_t)(left_tmp + *delay_left);
*s16_samples++ = (int16_t)(right_tmp + *delay_right);
*delay_left++ = dm_par->unit * *delay1_left++ + dm_par->clev * *delay1_center + dm_par->slev * *delay1_sl;
- *delay_right++ = dm_par->unit * *delay1_right++ + dm_par->clev * *center++ + dm_par->slev * *delay1_sl++;
+ *delay_right++ = dm_par->unit * *delay1_right++ + dm_par->clev * *delay1_center++ + dm_par->slev * *delay1_sl++;
}
break;
case 4: // 2/1
@@ -668,7 +668,7 @@
*s16_samples++ = (int16_t)(left_tmp + *delay_left);
*s16_samples++ = (int16_t)(right_tmp + *delay_right);
*delay_left++ = dm_par->unit * *delay1_left++ + dm_par->clev * *delay1_center;
- *delay_right++ = dm_par->unit * *delay1_right++ + dm_par->clev * *center++;
+ *delay_right++ = dm_par->unit * *delay1_right++ + dm_par->clev * *delay1_center++;
}
break;
case 2: // copy to output
More information about the MPlayer-dev-eng
mailing list