Browse Source

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

Ozkan Sezer 6 years ago
parent
commit
fdc67c3c60
1 changed files with 1 additions and 1 deletions
  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();
         return SDL_OutOfMemory();
     }
     }
 
 
-    state.cstate = &cstate;
+    state.cstate = cstate;
 
 
     /* Decode block by block. A truncated block will stop the decoding. */
     /* Decode block by block. A truncated block will stop the decoding. */
     bytesleft = state.input.size - state.input.pos;
     bytesleft = state.input.size - state.input.pos;