Commit c588ef32 authored by Patrice Mandin's avatar Patrice Mandin

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
parent bd51c732
...@@ -1374,7 +1374,7 @@ int SDL_BuildAudioCVT(SDL_AudioCVT *cvt, ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment