Преглед изворни кода

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

Ozkan Sezer пре 7 година
родитељ
комит
fdc67c3c60
1 измењених фајлова са 1 додато и 1 уклоњено
  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;