mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-31 00:09:19 +01:00
SDL_Wave: missing field 'length' initializer
This commit is contained in:
parent
f5a347853d
commit
cd011bb1e7
@ -1790,9 +1790,13 @@ WaveLoad(SDL_RWops *src, WaveFile *file, SDL_AudioSpec *spec, Uint8 **audio_buf,
|
|||||||
SDL_bool RIFFlengthknown = SDL_FALSE;
|
SDL_bool RIFFlengthknown = SDL_FALSE;
|
||||||
WaveFormat *format = &file->format;
|
WaveFormat *format = &file->format;
|
||||||
WaveChunk *chunk = &file->chunk;
|
WaveChunk *chunk = &file->chunk;
|
||||||
WaveChunk RIFFchunk = {0};
|
WaveChunk RIFFchunk;
|
||||||
WaveChunk fmtchunk = {0};
|
WaveChunk fmtchunk;
|
||||||
WaveChunk datachunk = {0};
|
WaveChunk datachunk;
|
||||||
|
|
||||||
|
SDL_zero(RIFFchunk);
|
||||||
|
SDL_zero(fmtchunk);
|
||||||
|
SDL_zero(datachunk);
|
||||||
|
|
||||||
envchunkcountlimit = SDL_getenv("SDL_WAVE_CHUNK_LIMIT");
|
envchunkcountlimit = SDL_getenv("SDL_WAVE_CHUNK_LIMIT");
|
||||||
if (envchunkcountlimit != NULL) {
|
if (envchunkcountlimit != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user