Skip to content

Commit 698aaa2

Browse files
committed
music_wavpack.c: added a comment about correction files loading.
(cherry picked from commit 7738cdc)
1 parent 1b1d7ba commit 698aaa2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/codecs/music_wavpack.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,10 @@ static void *WAVPACK_CreateFromFile(const char *file)
326326
file2 = SDL_stack_alloc(char, len + 2);
327327
if (!file2) src2 = NULL;
328328
else {
329+
/* this assumes 'file' is a good boy and has 'wv' as an extension.
330+
* official wavpack command line tools do the same thing so I'm not
331+
* doing anything extra. besides, the wavpack library validates the
332+
* correction file, therefore, no harm done. */
329333
SDL_memcpy(file2, file, len);
330334
file2[len] = 'c';
331335
file2[len + 1] = '\0';

0 commit comments

Comments
 (0)