Commit 244a35b0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

dca: set output buffer size correctly (fixes #6509, fixes #7459)

Some filters and outputs rely on the samples count (which was correct),
others on the bytes size (which was not), accounting for why decoding
failed only in some combinations.
parent 9b58a461
......@@ -314,6 +314,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_in_buf )
}
}
p_out_buf->i_buffer = p_in_buf->i_nb_samples * 4 * p_sys->i_nb_channels;
p_out_buf->i_nb_samples = p_in_buf->i_nb_samples;
p_out_buf->i_dts = p_in_buf->i_dts;
p_out_buf->i_pts = p_in_buf->i_pts;
......
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