diff mbox series

[FFmpeg-devel,4/5] avfilter/signature_lookup: Remove useless error logs

Message ID AS8P250MB07441485CA0E4308DF80802A8F4E2@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 626a076249c20477c4170e86bb255849404dbf6b
Headers show
Series [FFmpeg-devel,1/5] avfilter/vf_signature: Allocate arrays together | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Feb. 14, 2024, 12:05 p.m. UTC
These logs use the wrong loglevel and are uninformative;
and it is of course highly unlikely that a buffer of 56B
can't be allocated.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavfilter/signature_lookup.c | 4 ----
 1 file changed, 4 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/signature_lookup.c b/libavfilter/signature_lookup.c
index 3a42737e1a..ff0d23c5c7 100644
--- a/libavfilter/signature_lookup.c
+++ b/libavfilter/signature_lookup.c
@@ -297,13 +297,9 @@  static MatchingInfo* get_matching_parameters(AVFilterContext *ctx, SignatureCont
                 if (hmax < hspace[i][j].score) {
                     if (c == NULL) {
                         c = av_malloc(sizeof(MatchingInfo));
-                        if (!c)
-                            av_log(ctx, AV_LOG_FATAL, "Could not allocate memory");
                         cands = c;
                     } else {
                         c->next = av_malloc(sizeof(MatchingInfo));
-                        if (!c->next)
-                            av_log(ctx, AV_LOG_FATAL, "Could not allocate memory");
                         c = c->next;
 
                     }