Only convert endianness if both src and dest are 16bits

--HG--
branch : SDL-1.2
This commit is contained in:
Patrice Mandin 2006-09-16 09:14:25 +00:00
parent 08715ab5dd
commit bfb4b4f968

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;
}