[vlc-commits] scaletempo: prepare format on success

Thomas Guillem git at videolan.org
Wed Jul 12 19:10:34 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jul 12 19:04:22 2017 +0200| [e58fd39024a1045261efc51c65d3fa614a6f961a] | committer: Thomas Guillem

scaletempo: prepare format on success

This fixes a i_bytes_per_frame/i_frame_length inconsistency when chaining more
than one audio filters.

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

 modules/audio_filter/scaletempo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/audio_filter/scaletempo.c b/modules/audio_filter/scaletempo.c
index 4600ec33b5..39ded6fc44 100644
--- a/modules/audio_filter/scaletempo.c
+++ b/modules/audio_filter/scaletempo.c
@@ -428,6 +428,7 @@ static int Open( vlc_object_t *p_this )
     }
 
     p_filter->fmt_in.audio.i_format = VLC_CODEC_FL32;
+    aout_FormatPrepare(&p_filter->fmt_in.audio);
     p_filter->fmt_out.audio = p_filter->fmt_in.audio;
     p_filter->pf_audio_filter = DoWork;
     return VLC_SUCCESS;



More information about the vlc-commits mailing list