commit bf9640bf5a26f68a30631002ca3810c92cbe5c4b parent 8964ba6eeaf5df365f90d6137e7e119c0b12b1c3 Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Nov 1 12:36:13 +0000 Don't die on wav files with no data section Diffstat:
wave.cc | | | 2 | +- |
diff --git a/wave.cc b/wave.cc @@ -49,7 +49,7 @@ bool wave_decode( MemoryArena * arena, u8 * data, Sound * sound ) { } u32 pos = sizeof( WaveHeader ); - u32 data_length; + u32 data_length = 0; while( pos < header->length ) { WaveChunk * chunk = ( WaveChunk * ) ( data + pos );