0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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
This commit is contained in:
arpi 2002-06-14 01:48:14 +00:00
parent f60b501a6e
commit aa25ad7277

View File

@ -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;