[vlc-commits] chorus_flanger: prepare format on success

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


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

chorus_flanger: 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=4278d11dd1ccc21aff573dcc47ac824a58e19657
---

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

diff --git a/modules/audio_filter/chorus_flanger.c b/modules/audio_filter/chorus_flanger.c
index a69ed37022..0fe19c208f 100644
--- a/modules/audio_filter/chorus_flanger.c
+++ b/modules/audio_filter/chorus_flanger.c
@@ -193,6 +193,7 @@ static int Open( vlc_object_t *p_this )
     p_sys->i_sampleRate = p_filter->fmt_in.audio.i_rate;
 
     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;
 



More information about the vlc-commits mailing list