fix endian bug when applying replaygain
authorJosh Coalson <jcoalson@users.sourceforce.net>
Wed, 17 Dec 2003 18:40:02 +0000 (18:40 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Wed, 17 Dec 2003 18:40:02 +0000 (18:40 +0000)
src/flac/decode.c

index c042476..b0067a6 100644 (file)
@@ -823,7 +823,7 @@ FLAC__StreamDecoderWriteStatus write_callback(const void *decoder, const FLAC__F
                        if (decoder_session->replaygain.apply) {
                                const size_t n = FLAC__replaygain_synthesis__apply_gain(
                                        u8buffer,
-                                       is_big_endian,
+                                       !is_big_endian,
                                        is_unsigned_samples,
                                        buffer,
                                        wide_samples,