mirror of
https://github.com/yawut/SDL.git
synced 2026-07-26 21:20:56 -05:00
Only convert endianness if both src and dest are 16bits
--HG-- branch : SDL-1.2
This commit is contained in:
parent
08715ab5dd
commit
bfb4b4f968
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user