Commit b6ea6f5d authored by Thomas Guillem's avatar Thomas Guillem

spatialaudio: fix invalid block length

It was caused by integer overflow.
parent a1f9dfd5
......@@ -186,7 +186,7 @@ static block_t *Mix( filter_t *p_filter, block_t *p_buf )
p_out_buf->i_pts = p_sys->i_inputPTS;
p_out_buf->i_dts = p_out_buf->i_pts;
p_out_buf->i_length = p_out_buf->i_nb_samples * 1000000 / p_sys->i_rate;
p_out_buf->i_length = p_out_buf->i_nb_samples * INT64_C(1000000) / p_sys->i_rate;
float *p_dest = (float *)p_out_buf->p_buffer;
const float *p_src = (float *)p_sys->;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment