src/flac/decode.c : Decode WAVEFORMATEXTENSIBLE_CHANNEL_MASK.

When decoding, read the contents of the WAVEFORMATEXTENSIBLE_CHANNEL_MASK
tag and write write the channel mask to the WAV file.

Patch-from: lvqcl <lvqcl.mail@gmail.com>
This commit is contained in:
Erik de Castro Lopo
2014-04-28 05:10:12 +10:00
parent 11b004cacf
commit d4d5060e9e

View File

@@ -294,7 +294,7 @@ FLAC__bool DecoderSession_init_decoder(DecoderSession *decoder_session, const ch
FLAC__stream_decoder_set_md5_checking(decoder_session->decoder, true);
if (0 != decoder_session->cue_specification)
FLAC__stream_decoder_set_metadata_respond(decoder_session->decoder, FLAC__METADATA_TYPE_CUESHEET);
if (decoder_session->replaygain.spec.apply)
if (decoder_session->replaygain.spec.apply || !decoder_session->channel_map_none)
FLAC__stream_decoder_set_metadata_respond(decoder_session->decoder, FLAC__METADATA_TYPE_VORBIS_COMMENT);
#if FLAC__HAS_OGG