[FFmpeg-cvslog] fftools/resources/resman: Use assert for always-false condition

Andreas Rheinhardt git at videolan.org
Mon Jun 2 01:58:25 EEST 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Jun  1 04:20:32 2025 +0200| [6d5e18b2f35219dce2d54726a59c47e1c4363a25] | committer: Andreas Rheinhardt

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

Reviewed-by: softworkz . <softworkz-at-hotmail.com at ffmpeg.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6d5e18b2f35219dce2d54726a59c47e1c4363a25
---

 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 92e91a39d9..c1648dd643 100644
--- a/fftools/resources/resman.c
+++ b/fftools/resources/resman.c
@@ -142,10 +142,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);
 



More information about the ffmpeg-cvslog mailing list