[vlc-commits] Revert "scaletempo: fix output length"

Thomas Guillem git at videolan.org
Thu Feb 28 14:55:05 CET 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Feb 28 14:50:55 2019 +0100| [d53c5387178933ae50962dbe8d84d63e9bd7f299] | committer: Thomas Guillem

Revert "scaletempo: fix output length"

This reverts commit 2b0cd875c02c056482d2d6af8bc9b563e7fe2916.

This was wrong since output block pts and length didn't correspond.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d53c5387178933ae50962dbe8d84d63e9bd7f299
---

 modules/audio_filter/scaletempo.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/audio_filter/scaletempo.c b/modules/audio_filter/scaletempo.c
index 034b50bef1..3f47a76ae7 100644
--- a/modules/audio_filter/scaletempo.c
+++ b/modules/audio_filter/scaletempo.c
@@ -591,8 +591,7 @@ 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_buffer
-                                                     / p_in_buf->i_buffer;
+        p_out_buf->i_length     = p_in_buf->i_length;
     }
 
     block_Release( p_in_buf );



More information about the vlc-commits mailing list