From a0c064dfec0d4be6dc24c39d1e5757c5587f4528 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 1 Jun 2025 04:20:32 +0200 Subject: [PATCH 05/11] fftools/resources/resman: Use assert for always-false condition Signed-off-by: Andreas Rheinhardt --- fftools/resources/resman.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fftools/resources/resman.c b/fftools/resources/resman.c index 15285a719b..02a2a19e1b 100644 --- a/fftools/resources/resman.c +++ b/fftools/resources/resman.c @@ -143,10 +143,7 @@ char *ff_resman_get_string(FFResourceId resource_id) } } - if (!resource_definition.name) { - av_log(ctx, AV_LOG_ERROR, "Unable to find resource with ID %d\n", resource_id); - return NULL; - } + av_assert1(resource_definition.name); ff_mutex_lock(&mutex); -- 2.45.2