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,8 +222,7 @@ 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;
impl->port[Port] = DataLocation;
}
static void ebur128_cleanup(void * Instance)
@ -446,8 +445,7 @@ static void lufs2gain_connect_port(void * Instance, unsigned long Port,
float * DataLocation)
{
struct lufs2gain_impl *impl = Instance;
if (Port < 3)
impl->port[Port] = DataLocation;
impl->port[Port] = DataLocation;
}
static void lufs2gain_run(void * Instance, unsigned long SampleCount)

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;
}