1
0
Fork 0

Bump dr_flac to v0.12.9

This commit is contained in:
David Reid 2020-04-05 20:06:46 -07:00 committed by krcroft
parent 7236ea552d
commit 50df2eb641
No known key found for this signature in database
GPG key ID: 4AD3678F4A2C291C
3 changed files with 1298 additions and 305 deletions

View file

@ -57,6 +57,30 @@
"FileName": "dr_flac.h",
"Message": "Expression 'result == - _' is always false."
},
{
"CodeCurrent": 220072429,
"CodeNext": 220072429,
"CodePrev": 0,
"ErrorCode": "V1004",
"FileName": "dr_flac.h",
"Message": "The 'pFlac' pointer was used unsafely after it was verified against nullptr."
},
{
"CodeCurrent": 220072429,
"CodeNext": 2822007974,
"CodePrev": 220072429,
"ErrorCode": "V1004",
"FileName": "dr_flac.h",
"Message": "The 'pFlac' pointer was used unsafely after it was verified against nullptr."
},
{
"CodeCurrent": 2822007974,
"CodeNext": 0,
"CodePrev": 220072429,
"ErrorCode": "V1004",
"FileName": "dr_flac.h",
"Message": "The 'pFlac' pointer was used unsafely after it was verified against nullptr."
},
{
"CodeCurrent": 297803,
"CodeNext": 123,

File diff suppressed because it is too large Load diff

View file

@ -1,12 +1,9 @@
/*
* DOSBox FLAC decoder API implementation
* --------------------------------------
* This decoder makes use of the dr_flac library by David Reid (mackron@gmail.com)
* - dr_libs: https://github.com/mackron/dr_libs (source)
* - dr_flac: http://mackron.github.io/dr_flac.html (website)
* SPDX-License-Identifier: GPL-2.0-or-later
*
* Copyright (C) 2018-2020 The DOSBox Team
* Copyright (C) 2001-2017 Ryan C. Gordon <icculus@icculus.org>
* Copyright (C) 2018-2019 Kevin R. Croft <krcroft@gmail.com>
* Copyright (C) 2020-2020 The dosbox-staging team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -23,9 +20,13 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#if HAVE_CONFIG_H
# include <config.h>
#endif
/*
* DOSBox FLAC decoder API implementation
* --------------------------------------
* This decoder makes use of the dr_flac library by David Reid (mackron@gmail.com)
* - dr_libs: https://github.com/mackron/dr_libs (source)
* - dr_flac: http://mackron.github.io/dr_flac.html (website)
*/
#include <math.h> /* for llroundf */
@ -36,11 +37,8 @@
#define DR_FLAC_IMPLEMENTATION
#define DR_FLAC_NO_STDIO 1
#define DR_FLAC_NO_WIN32_IO 1
#define DRFLAC_FREE(p) SDL_free((p))
#define DRFLAC_MALLOC(sz) SDL_malloc((sz))
#define DRFLAC_REALLOC(p, sz) SDL_realloc((p), (sz))
#define DRFLAC_ZERO_MEMORY(p, sz) SDL_memset((p), 0, (sz))
#define DRFLAC_COPY_MEMORY(dst, src, sz) SDL_memcpy((dst), (src), (sz))
#define DR_FLAC_NO_OGG 1
#define DR_FLAC_BUFFER_SIZE 8192
#include "dr_flac.h"
static size_t flac_read(void* pUserData, void* pBufferOut, size_t bytesToRead)