mirror of https://github.com/mpv-player/mpv
10l fix I hope, reverse if not
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14188 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9a6c650981
commit
dd4fadb7c0
|
@ -364,6 +364,8 @@ static int decode_audio_dts(unsigned char *indata_ptr, int len, unsigned char *b
|
||||||
#else
|
#else
|
||||||
//TODO if fzise is odd, swab doesn't copy the last byte
|
//TODO if fzise is odd, swab doesn't copy the last byte
|
||||||
swab(indata_ptr, &buf[8], fsize);
|
swab(indata_ptr, &buf[8], fsize);
|
||||||
|
if (fsize & 1)
|
||||||
|
buf[8+fsize] = indata_ptr[fsize];
|
||||||
#endif
|
#endif
|
||||||
memset(&buf[fsize + 8], 0, nr_samples * 2 * 2 - (fsize + 8));
|
memset(&buf[fsize + 8], 0, nr_samples * 2 * 2 - (fsize + 8));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue