[vlc-commits] scaletempo: fix block length
Thomas Guillem
git at videolan.org
Tue Mar 19 16:03:20 CET 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Mar 14 15:18:22 2019 +0100| [a117f3f81cbdd1d94491bb56a50a263eed4c84cd] | committer: Thomas Guillem
scaletempo: fix block length
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a117f3f81cbdd1d94491bb56a50a263eed4c84cd
---
modules/audio_filter/scaletempo.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/audio_filter/scaletempo.c b/modules/audio_filter/scaletempo.c
index e30e12c7c1..d1b66f45ee 100644
--- a/modules/audio_filter/scaletempo.c
+++ b/modules/audio_filter/scaletempo.c
@@ -591,7 +591,8 @@ static block_t *DoWork( filter_t * p_filter, block_t * p_in_buf )
p_out_buf->i_nb_samples = bytes_out / p->bytes_per_frame;
p_out_buf->i_dts = p_in_buf->i_dts;
p_out_buf->i_pts = p_in_buf->i_pts;
- p_out_buf->i_length = p_in_buf->i_length;
+ p_out_buf->i_length = vlc_tick_from_samples(p_out_buf->i_nb_samples,
+ p_filter->fmt_out.audio.i_rate);
}
block_Release( p_in_buf );
More information about the vlc-commits
mailing list