[vlc-devel] [PATCH 5/5] resampler: ugly: ensure fmt_out is correctly set
Tristan Matthews
tmatth at videolan.org
Sun Feb 21 05:33:54 UTC 2021
---
modules/audio_filter/resampler/ugly.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/audio_filter/resampler/ugly.c b/modules/audio_filter/resampler/ugly.c
index da13a598dd..90664f434d 100644
--- a/modules/audio_filter/resampler/ugly.c
+++ b/modules/audio_filter/resampler/ugly.c
@@ -82,6 +82,10 @@ static int CreateResampler( vlc_object_t *p_this )
.filter_audio = DoWork,
};
p_filter->ops = &filter_ops;
+
+ /* Ensure bitspersample + bytes_per_frame are correctly set */
+ aout_FormatPrepare(&p_filter->fmt_out.audio);
+
return VLC_SUCCESS;
}
--
2.25.1
More information about the vlc-devel
mailing list