Commit 8e62eafb authored by Jean-Paul Saman's avatar Jean-Paul Saman

Do not use fl32 but fi32 when transcoding on non-FPU capable systems.

parent 36c1cae1
......@@ -1081,12 +1081,15 @@ static int transcode_audio_filter_chain_build( sout_stream_t *p_stream, filter_c
p_src->audio.i_rate,
p_dst->audio.i_rate );
/* If any filter is needed, convert to fl32 */
if( current.i_codec != VLC_FOURCC('f','l','3','2') )
vlc_fourcc_t fourcc = ( vlc_CPU() & CPU_CAPABILITY_FPU ) ?
VLC_FOURCC('f','l','3','2') : VLC_FOURCC('f','i','3','2');
/* If any filter is needed, convert to fl32 or fi32 */
if( current.i_codec != fourcc )
{
/* First step, convert to fl32 */
/* First step, convert to f{l,i}32 */
current.i_codec =
current.audio.i_format = VLC_FOURCC('f','l','3','2');
current.audio.i_format = fourcc;
if( !filter_chain_AppendFilter( p_chain, NULL, NULL, NULL, &current ) )
{
......@@ -1227,7 +1230,8 @@ static 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_FOURCC('f','l','3','2');
fmt_fl32.audio.i_format = (vlc_CPU() & CPU_CAPABILITY_FPU) ?
VLC_FOURCC('f','l','3','2') : VLC_FOURCC('f','i','3','2');
if( transcode_audio_filter_chain_build( p_stream, id->p_uf_chain,
&fmt_fl32, &fmt_last ) )
{
......
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