[vlc-devel] [PATCH 2/3] resampler: speex: ensure fmt_out is correctly set
Tristan Matthews
tmatth at videolan.org
Sun Feb 21 05:13:09 UTC 2021
---
modules/audio_filter/resampler/speex.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/audio_filter/resampler/speex.c b/modules/audio_filter/resampler/speex.c
index 37f92e1596..c0eed245e7 100644
--- a/modules/audio_filter/resampler/speex.c
+++ b/modules/audio_filter/resampler/speex.c
@@ -98,6 +98,9 @@ static int OpenResampler (vlc_object_t *obj)
filter->p_sys = st;
filter->ops = &filter_ops;
+ /* Ensure bitspersample + bytes_per_frame are correctly set */
+ aout_FormatPrepare(&filter->fmt_out.audio);
+
return VLC_SUCCESS;
}
--
2.25.1
More information about the vlc-devel
mailing list