Only convert endianness if both src and dest are 16bits
--HG-- branch : SDL-1.2 extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402086
This commit is contained in:
parent
bd51c73283
commit
c588ef3271
1 changed files with 1 additions and 1 deletions
|
@ -1374,7 +1374,7 @@ int SDL_BuildAudioCVT(SDL_AudioCVT *cvt,
|
||||||
|
|
||||||
/* First filter: Endian conversion from src to dst */
|
/* First filter: Endian conversion from src to dst */
|
||||||
if ( (src_format & 0x1000) != (dst_format & 0x1000)
|
if ( (src_format & 0x1000) != (dst_format & 0x1000)
|
||||||
&& ((src_format & 0xff) != 8) ) {
|
&& ((src_format & 0xff) == 16) && ((dst_format & 0xff) == 16)) {
|
||||||
cvt->filters[cvt->filter_index++] = SDL_ConvertEndian;
|
cvt->filters[cvt->filter_index++] = SDL_ConvertEndian;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue