replace SDL_memcpy with standard array copy

main
cosmonaut 2021-11-23 14:11:59 -08:00
parent 54eb1d503f
commit eda6d45c35
2 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ double TheorafileGMS_ReadVideo(char* filePointer, char* buffer, double numFrames
for (int i = 0; i < requiredBufferSize; i += 1)
{
SDL_memcpy(buffer + (i * 4), yuvBuffer + i, sizeof(char));
buffer[i * 4] = yuvBuffer[i];
}
SDL_free(yuvBuffer);