[vlc-commits] spatializer: prepare format on success

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


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jul 12 18:59:34 2017 +0200| [2cd79223990e221e19f5cfbd01f50e9f69dfb089] | committer: Thomas Guillem

spatializer: 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=2cd79223990e221e19f5cfbd01f50e9f69dfb089
---

 modules/audio_filter/spatializer/spatializer.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/audio_filter/spatializer/spatializer.cpp b/modules/audio_filter/spatializer/spatializer.cpp
index 76ce7e2477..5b52527ce1 100644
--- a/modules/audio_filter/spatializer/spatializer.cpp
+++ b/modules/audio_filter/spatializer/spatializer.cpp
@@ -160,6 +160,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