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

Audio format: requires same sample rate and channels count

This fixes #3168. The audio_format plugin was ignorantly claiming to
convert the sample rate and channel count, though it obviously did not.
parent 96e872ee
......@@ -206,6 +206,9 @@ static int Open( vlc_object_t *p_this )
filter_t *p_filter = (filter_t *)p_this;
int i;
if ( !AOUT_FMTS_SIMILAR( &p_filter->fmt_in.audio, &p_filter->fmt_out.audio ) )
return VLC_EGENERIC;
for( i = 0; ConvertTable[i].pf_convert != NULL; i++ )
{
if( ConvertTable[i].i_src == p_filter->fmt_in.i_codec &&
......
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