Explorar el Código

MS_ADPCM_Decode: fix assigning an array to a pointer (lose '&').

Ozkan Sezer hace 6 años
padre
commit
fdc67c3c60
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/audio/SDL_wave.c

+ 1 - 1
src/audio/SDL_wave.c

@@ -691,7 +691,7 @@ MS_ADPCM_Decode(WaveFile *file, Uint8 **audio_buf, Uint32 *audio_len)
         return SDL_OutOfMemory();
     }
 
-    state.cstate = &cstate;
+    state.cstate = cstate;
 
     /* Decode block by block. A truncated block will stop the decoding. */
     bytesleft = state.input.size - state.input.pos;