1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

fftools/resources/resman: Use assert for always-false condition

Reviewed-by: softworkz . <softworkz-at-hotmail.com@ffmpeg.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-06-01 04:20:32 +02:00
parent 06cd9086c3
commit 6d5e18b2f3

View File

@ -142,10 +142,7 @@ char *ff_resman_get_string(FFResourceId resource_id)
} }
} }
if (!resource_definition.name) { av_assert1(resource_definition.name);
av_log(ctx, AV_LOG_ERROR, "Unable to find resource with ID %d\n", resource_id);
return NULL;
}
ff_mutex_lock(&mutex); ff_mutex_lock(&mutex);