[flac-dev] [PATCH] set decoding status if write callback failed.

2016-07-10 Thread lvqcl
Open src/flac/decode.c, find write_callback() function and add return FLAC__STREAM_DECODER_WRITE_STATUS_ABORT; to the beginning of the function. Decoding will fail with the following message: test.flac: ERROR while decoding data state = FLAC__STREAM_DECODER_READ_FRAME As you c

[flac-dev] [PATCH] for FLAC__cpu_info_asm_ia32

2016-07-10 Thread lvqcl
Stumbled upon https://bugzilla.mozilla.org/show_bug.cgi?id=1096651#c9 bug Some old CPU (Cyrix) sets EDX but not ECX when executing CPUID. One of the solutions it to clear ECX before calling cpuid, and it can be applied to libFLAC code as well, see the patch. cpuid_cyrix_fix.patch Description: Bi