avfilter/signature_lookup: Remove useless error logs
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>
This commit is contained in:
@@ -297,13 +297,9 @@ static MatchingInfo* get_matching_parameters(AVFilterContext *ctx, SignatureCont
|
|||||||
if (hmax < hspace[i][j].score) {
|
if (hmax < hspace[i][j].score) {
|
||||||
if (c == NULL) {
|
if (c == NULL) {
|
||||||
c = av_malloc(sizeof(MatchingInfo));
|
c = av_malloc(sizeof(MatchingInfo));
|
||||||
if (!c)
|
|
||||||
av_log(ctx, AV_LOG_FATAL, "Could not allocate memory");
|
|
||||||
cands = c;
|
cands = c;
|
||||||
} else {
|
} else {
|
||||||
c->next = av_malloc(sizeof(MatchingInfo));
|
c->next = av_malloc(sizeof(MatchingInfo));
|
||||||
if (!c->next)
|
|
||||||
av_log(ctx, AV_LOG_FATAL, "Could not allocate memory");
|
|
||||||
c = c->next;
|
c = c->next;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user