[vlc-commits] [Git][videolan/vlc][master] 2 commits: audio_filter/center: fix i_length set to bytes instead of duration
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed Mar 18 07:19:57 UTC 2026
Hello everyone
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
d0aaae5b by Abhinav Aswin at 2026-03-18T06:43:48+00:00
audio_filter/center: fix i_length set to bytes instead of duration
out_buf->i_length was set to sizeof(float) * i_nb_samples which
is a byte count, not a duration in microseconds. Use
vlc_tick_from_samples() to set the correct duration.
- - - - -
18da715c by Abhinav Aswin at 2026-03-18T06:43:48+00:00
audio_filter/center: copy i_length from input block
- - - - -
1 changed file:
- modules/audio_filter/center.c
Changes:
=====================================
modules/audio_filter/center.c
=====================================
@@ -45,7 +45,7 @@ static block_t *Process ( filter_t *filter, block_t *in_buf )
out_buf->i_nb_samples = i_nb_samples;
out_buf->i_dts = in_buf->i_dts;
out_buf->i_pts = in_buf->i_pts;
- out_buf->i_length = sizeof(float) * i_nb_samples;
+ out_buf->i_length = in_buf->i_length;
const float factor = .70710678;
for ( size_t i = 0 ; i < i_nb_samples ; ++i)
{
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/a6ae738f840d6e89dd4f0ffc8a5501e49eed802b...18da715c285f176b229b569dd683d9e81c3e5d3b
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/a6ae738f840d6e89dd4f0ffc8a5501e49eed802b...18da715c285f176b229b569dd683d9e81c3e5d3b
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list