diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2015-09-04 00:22:18 +1000 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2015-09-04 00:22:48 +1000 |
commit | 9be32a538fcf8118c1c1aa9f7ab27546926a597e (patch) | |
tree | f6c32edaba9be64487bbba97e78dadc04fc7cd8e /src/flac | |
parent | 4591b3f2fbe1acb8a42a8f06444c50b5083498b1 (diff) | |
download | flac-9be32a538fcf8118c1c1aa9f7ab27546926a597e.tar.gz |
flac/decode.c: Fix undefined behaviour
Diffstat (limited to 'src/flac')
-rw-r--r-- | src/flac/decode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flac/decode.c b/src/flac/decode.c index ff6cf336..10d4a340 100644 --- a/src/flac/decode.c +++ b/src/flac/decode.c @@ -1135,7 +1135,7 @@ FLAC__StreamDecoderWriteStatus write_callback(const FLAC__StreamDecoder *decoder if(shift && !decoder_session->replaygain.apply) { for(wide_sample = 0; wide_sample < wide_samples; wide_sample++) for(channel = 0; channel < channels; channel++) - ((FLAC__int32**)buffer)[channel][wide_sample] <<= shift;/*@@@@@@un-const'ing the buffer is hacky but safe*/ + ((uint32_t **)buffer)[channel][wide_sample] <<= shift;/*@@@@@@un-const'ing the buffer is hacky but safe*/ } if(decoder_session->replaygain.apply) { bytes_to_write = FLAC__replaygain_synthesis__apply_gain( |