Commit 91e57b16 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

flac: fix undefined left shift of negative value

parent 68f1623b
......@@ -134,7 +134,7 @@ static void Interleave( int32_t *p_out, const int32_t * const *pp_in,
for( unsigned j = 0; j < i_samples; j++ )
for( unsigned i = 0; i < i_nb_channels; i++ )
p_out[j * i_nb_channels + i] = pp_in[pi_index[i]][j] << shift;
p_out[j * i_nb_channels + i] = ((uint32_t)pp_in[pi_index[i]][j]) << shift;
}
/*****************************************************************************
......
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