Commit fdc67c3c60a616b902e0c893ce617bcc9c55a0d0

Ozkan Sezer 2019-07-31T00:10:00

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

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/audio/SDL_wave.c b/src/audio/SDL_wave.c
index 4842101..d5d4eed 100644
--- a/src/audio/SDL_wave.c
+++ b/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;