filter-graph: remove port check

Remove the port number check, we never call this with an invalid port
number and the check was wrong for the sofa_plugin.

Fixes #4700
This commit is contained in:
Wim Taymans 2025-05-14 17:02:46 +02:00
parent a0eb12e4be
commit 9b316f6deb
2 changed files with 2 additions and 6 deletions

View file

@ -222,7 +222,6 @@ static void ebur128_connect_port(void * Instance, unsigned long Port,
float * DataLocation)
{
struct ebur128_impl *impl = Instance;
if (Port < PORT_MAX)
impl->port[Port] = DataLocation;
}
@ -446,7 +445,6 @@ static void lufs2gain_connect_port(void * Instance, unsigned long Port,
float * DataLocation)
{
struct lufs2gain_impl *impl = Instance;
if (Port < 3)
impl->port[Port] = DataLocation;
}

View file

@ -319,8 +319,6 @@ static void spatializer_connect_port(void * Instance, unsigned long Port,
float * DataLocation)
{
struct spatializer_impl *impl = Instance;
if (Port > 5)
return;
impl->port[Port] = DataLocation;
}