mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 20:05:36 +00:00
audio: trying to pacify static analysis.
This commit is contained in:
parent
c80c3419aa
commit
1683a0c106
|
@ -1305,7 +1305,7 @@ SDL_AudioStreamPut(SDL_AudioStream *stream, const void *buf, const Uint32 _bufle
|
||||||
return -1; /* probably out of memory. */
|
return -1; /* probably out of memory. */
|
||||||
}
|
}
|
||||||
if (buf == origbuf) { /* copy if we haven't before. */
|
if (buf == origbuf) { /* copy if we haven't before. */
|
||||||
SDL_memcpy(workbuf, buf, buflen);
|
SDL_memcpy(workbuf, origbuf, buflen);
|
||||||
}
|
}
|
||||||
stream->cvt_after_resampling.buf = workbuf;
|
stream->cvt_after_resampling.buf = workbuf;
|
||||||
stream->cvt_after_resampling.len = buflen;
|
stream->cvt_after_resampling.len = buflen;
|
||||||
|
|
Loading…
Reference in a new issue