Commit c54022a6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

dca: do not override output format (refs #5150)

parent c97c0436
......@@ -326,17 +326,9 @@ static int OpenFilter( vlc_object_t *p_this )
filter_sys_t *p_sys;
int i_ret;
if( p_filter->fmt_in.i_codec != VLC_CODEC_DTS ||
p_filter->fmt_out.audio.i_format == VLC_CODEC_SPDIFB ||
p_filter->fmt_out.audio.i_format == VLC_CODEC_SPDIFL )
{
if( p_filter->fmt_in.i_codec != VLC_CODEC_DTS
|| p_filter->fmt_out.audio.i_format != VLC_CODEC_FL32 )
return VLC_EGENERIC;
}
p_filter->fmt_out.audio.i_format =
p_filter->fmt_out.i_codec = VLC_CODEC_FL32;
p_filter->fmt_out.audio.i_bitspersample =
aout_BitsPerSample( p_filter->fmt_out.i_codec );
/* Allocate the memory needed to store the module's structure */
p_sys = p_filter->p_sys = malloc( sizeof(filter_sys_t) );
......
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