Re: [flac-dev] Patch to fix compiler warnings and error status collisions

2014-04-09 Thread Erik de Castro Lopo
Erik de Castro Lopo wrote: > This could also be fixed by adding a: > >decoder->protected_->initstate > > and using that correctly. Right? > > I'm going to play with this idea. That fixed it. Commit is here: https://git.xiph.org/?p=flac.git;a=commit;h=3f5208c30022b7cbd0b9095ad3550c4f6

[flac-dev] [PATCH] for include/share/compat.h

2014-04-09 Thread lvqcl
This file has the following code: #ifdef _WIN32 /* All char* strings are in UTF-8 format. Added to support Unicode files on Windows */ [...] #define flac_stat _stat64_utf8 #else [...] #ifdef _WIN32 #define flac_stat _stat64 #else #define flac_stat stat #endif #endif The second "#ifdef _WI

[flac-dev] [PATCH] for src/libFLAC/include/private/bitmath.h

2014-04-09 Thread lvqcl
From the neighbouring list, http://lists.xiph.org/pipermail/opus/2014-April/002592.html "proper architecture-specific MSVC definitions, _M_IX86 and _M_X64" So this patch changes _WIN64 to _M_X64 (the corresponding code enables _BitScanReverse64) bitmath.patch Description: Binary data

[flac-dev] [PATCH] Suppress MSVS warnings for lpc.c

2014-04-09 Thread lvqcl
When compiling lpc.c for x86-64 architecture MSVS issues warnings: warning C4028: formal parameter _N_ different from declaration because of flac_restrict modifier. This patch suppresses these warnings. lpc-msvs-warnings.patch Description: Binary data ___