mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
windows: Don't let Visual Studio insert an implicit dependency on memset().
Fixes Bugzilla #4662.
This commit is contained in:
parent
399df540e3
commit
254eb67775
@ -1039,7 +1039,7 @@ IMA_ADPCM_Decode(WaveFile *file, Uint8 **audio_buf, Uint32 *audio_len)
|
|||||||
int result;
|
int result;
|
||||||
size_t bytesleft, outputsize;
|
size_t bytesleft, outputsize;
|
||||||
WaveChunk *chunk = &file->chunk;
|
WaveChunk *chunk = &file->chunk;
|
||||||
ADPCM_DecoderState state = {0};
|
ADPCM_DecoderState state;
|
||||||
Sint8 *cstate;
|
Sint8 *cstate;
|
||||||
|
|
||||||
if (chunk->size != chunk->length) {
|
if (chunk->size != chunk->length) {
|
||||||
@ -1056,6 +1056,7 @@ IMA_ADPCM_Decode(WaveFile *file, Uint8 **audio_buf, Uint32 *audio_len)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SDL_zero(state);
|
||||||
state.channels = file->format.channels;
|
state.channels = file->format.channels;
|
||||||
state.blocksize = file->format.blockalign;
|
state.blocksize = file->format.blockalign;
|
||||||
state.blockheadersize = (size_t)state.channels * 4;
|
state.blockheadersize = (size_t)state.channels * 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user