Commit 0bea5fb9 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

flac/encode.c: Fix undefinoed behaviour

parent 3982865e
......@@ -2432,7 +2432,7 @@ FLAC__bool format_input(FLAC__int32 *dest[], unsigned wide_samples, FLAC__bool i
unsigned b;
for(b = sample = wide_sample = 0; wide_sample < wide_samples; wide_sample++)
for(channel = 0; channel < channels; channel++, sample++) {
FLAC__int32 t;
uint32_t t;
t = ubuffer.s8[b++]; t <<= 8;
t |= ubuffer.u8[b++]; t <<= 8;
t |= ubuffer.u8[b++];
......
Supports Markdown
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