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:
Patrice Mandin 2006-09-16 09:14:25 +00:00
parent bd51c73283
commit c588ef3271

View file

@ -1374,7 +1374,7 @@ int SDL_BuildAudioCVT(SDL_AudioCVT *cvt,
/* First filter: Endian conversion from src to dst */
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;
}