changeset 6428:88a06ebb3287

audio subpacket reordering fixed for odd matrix height triggered by cowboy.rm uploaded by Luke Harrison <luke@vv.carleton.ca>
author arpi
date Fri, 14 Jun 2002 01:48:14 +0000
parents 41b149822666
children bff56f37f2ff
files libmpcodecs/ad_real.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_real.c	Fri Jun 14 01:44:30 2002 +0000
+++ b/libmpcodecs/ad_real.c	Fri Jun 14 01:48:14 2002 +0000
@@ -168,7 +168,7 @@
       int x,y;
       for(y=0;y<h;y++)
         for(x=0;x<w;x++){
-	    demux_read_data(sh->ds, sh->a_in_buffer+sps*(h*x+(h/2)*(y&1)+(y>>1)), sps);
+	    demux_read_data(sh->ds, sh->a_in_buffer+sps*(h*x+((h+1)/2)*(y&1)+(y>>1)), sps);
 	}
       sh->a_in_buffer_size=
       sh->a_in_buffer_len=w*h*sps;