summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-14 01:48:14 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-14 01:48:14 +0000
commitaa25ad7277c2d5809fb0c17c8462eea97b02763d (patch)
treec8a29806c980165c401d69d52e4c1fbcf0410096 /libmpcodecs
parentf60b501a6ec7bea83a87dc2252b223626c7af9a0 (diff)
downloadmpv-aa25ad7277c2d5809fb0c17c8462eea97b02763d.tar.bz2
mpv-aa25ad7277c2d5809fb0c17c8462eea97b02763d.tar.xz
audio subpacket reordering fixed for odd matrix height
triggered by cowboy.rm uploaded by Luke Harrison <luke@vv.carleton.ca> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6429 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ad_real.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/ad_real.c b/libmpcodecs/ad_real.c
index 26ac42d299..628239162c 100644
--- a/libmpcodecs/ad_real.c
+++ b/libmpcodecs/ad_real.c
@@ -168,7 +168,7 @@ static int decode_audio(sh_audio_t *sh,unsigned char *buf,int minlen,int maxlen)
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;