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:
alex 2004-12-19 16:53:26 +00:00
parent 9a6c650981
commit dd4fadb7c0
1 changed files with 2 additions and 0 deletions

View File

@ -364,6 +364,8 @@ static int decode_audio_dts(unsigned char *indata_ptr, int len, unsigned char *b
#else
//TODO if fzise is odd, swab doesn't copy the last byte
swab(indata_ptr, &buf[8], fsize);
if (fsize & 1)
buf[8+fsize] = indata_ptr[fsize];
#endif
memset(&buf[fsize + 8], 0, nr_samples * 2 * 2 - (fsize + 8));