mirror of
https://github.com/mpv-player/mpv
synced 2025-01-18 13:14:36 +00: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:
parent
f60b501a6e
commit
aa25ad7277
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user