Commit 775eb934 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

src/flac/decode.c : Add WAVEFORMATEXTENSIBLE to WAV files as needed.


Patch-by: default avatarlvqcl <lvqcl.mail@gmail.com>
parent bc97640b
......@@ -581,8 +581,7 @@ FLAC__bool write_iff_headers(FILE *f, DecoderSession *decoder_session, FLAC__uin
const FLAC__bool is_waveformatextensible =
(format == FORMAT_WAVE || format == FORMAT_WAVE64 || format == FORMAT_RF64) &&
(
decoder_session->channel_mask == 2 ||
decoder_session->channel_mask > 3 ||
(decoder_session->channel_mask != 0 && decoder_session->channel_mask != 0x0004 && decoder_session->channel_mask != 0x0003) ||
decoder_session->bps%8 ||
decoder_session->channels > 2
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment