Skip to content

Commit

Permalink
Only convert endianness if both src and dest are 16bits
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Sep 16, 2006
1 parent 0194a02 commit b1632e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/SDL_audiocvt.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit b1632e2

Please sign in to comment.