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

a52dec: do not change output format (refs #5150)

parent 819d135d
...@@ -354,21 +354,14 @@ static int OpenFilter( vlc_object_t *p_this ) ...@@ -354,21 +354,14 @@ static int OpenFilter( vlc_object_t *p_this )
filter_sys_t *p_sys; filter_sys_t *p_sys;
int i_ret; int i_ret;
if( p_filter->fmt_in.i_codec != VLC_CODEC_A52 || if( p_filter->fmt_in.i_codec != VLC_CODEC_A52 )
p_filter->fmt_out.audio.i_format == VLC_CODEC_SPDIFB ||
p_filter->fmt_out.audio.i_format == VLC_CODEC_SPDIFL )
{
return VLC_EGENERIC; return VLC_EGENERIC;
}
p_filter->fmt_out.audio.i_format =
#ifdef LIBA52_FIXED #ifdef LIBA52_FIXED
p_filter->fmt_out.i_codec = VLC_CODEC_FI32; if( p_filter->fmt_out.audio.i_format != VLC_CODEC_FI32 )
#else #else
p_filter->fmt_out.i_codec = VLC_CODEC_FL32; if( p_filter->fmt_out.audio.i_format != VLC_CODEC_FL32 )
#endif #endif
p_filter->fmt_out.audio.i_bitspersample = return VLC_EGENERIC;
aout_BitsPerSample( p_filter->fmt_out.i_codec );
/* Allocate the memory needed to store the module's structure */ /* Allocate the memory needed to store the module's structure */
p_filter->p_sys = p_sys = malloc( sizeof(filter_sys_t) ); p_filter->p_sys = 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