compressor: prepare format on success
authorThomas Guillem <thomas@gllm.fr>
Wed, 12 Jul 2017 17:04:57 +0000 (19:04 +0200)
committerThomas Guillem <thomas@gllm.fr>
Wed, 12 Jul 2017 17:06:14 +0000 (19:06 +0200)
This fixes a i_bytes_per_frame/i_frame_length inconsistency when chaining more
than one audio filters.

modules/audio_filter/compressor.c

index a6fdac7..fad8237 100644 (file)
@@ -255,6 +255,7 @@ static int Open( vlc_object_t *p_this )
 
     /* Set the filter function */
     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;