[vlc-commits] audiobargraph: prepare format on success
Thomas Guillem
git at videolan.org
Wed Jul 12 19:10:30 CEST 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jul 12 19:03:36 2017 +0200| [5efc7767c46fdd68066f08980c768d4eddb09a96] | committer: Thomas Guillem
audiobargraph: 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=5efc7767c46fdd68066f08980c768d4eddb09a96
---
modules/audio_filter/audiobargraph_a.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/audio_filter/audiobargraph_a.c b/modules/audio_filter/audiobargraph_a.c
index 0b1f6248e9..bdccf32f38 100644
--- a/modules/audio_filter/audiobargraph_a.c
+++ b/modules/audio_filter/audiobargraph_a.c
@@ -136,6 +136,7 @@ static int Open( vlc_object_t *p_this )
p_sys->lastAlarm = 0;
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