Commit 75e4e078 authored by Rémi Duraffort's avatar Rémi Duraffort

Should fix #4224.

(cherry picked from commit b15fa6b2bd176914adb43c46d621ba1ca5982a62)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 4af27d51
......@@ -283,6 +283,10 @@ int transcode_audio_new( sout_stream_t *p_stream,
es_format_t fmt_fl32 = fmt_last;
fmt_fl32.i_codec =
fmt_fl32.audio.i_format = VLC_CODEC_FL32;
id->p_uf_chain = filter_chain_New( p_stream, "audio filter", false,
transcode_audio_filter_allocation_init, NULL, NULL );
filter_chain_Reset( id->p_uf_chain, &fmt_last, &fmt_fl32 );
if( transcode_audio_filter_chain_build( p_stream, id->p_uf_chain,
&fmt_fl32, &fmt_last ) )
{
......@@ -291,9 +295,6 @@ int transcode_audio_new( sout_stream_t *p_stream,
}
fmt_last = fmt_fl32;
id->p_uf_chain = filter_chain_New( p_stream, "audio filter", false,
transcode_audio_filter_allocation_init, NULL, NULL );
filter_chain_Reset( id->p_uf_chain, &fmt_last, &fmt_fl32 );
if( filter_chain_AppendFromString( id->p_uf_chain, p_sys->psz_af ) > 0 )
fmt_last = *filter_chain_GetFmtOut( id->p_uf_chain );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment