summaryrefslogtreecommitdiff
path: root/libavfilter/vf_identity.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2021-03-13 10:36:04 +0800
committerLimin Wang <lance.lmwang@gmail.com>2021-05-01 08:45:30 +0800
commitd150a9eb444e672e0109b3ea1a04cf34522da51e (patch)
tree2ed600a45f40f33add8a4282042a193b4ba19cef /libavfilter/vf_identity.c
parent8410000f178134a7123b869b799f1a907c0028bf (diff)
downloadffmpeg-d150a9eb444e672e0109b3ea1a04cf34522da51e.tar.gz
avfilter/vf_identity: remove unnecessary check
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavfilter/vf_identity.c')
-rw-r--r--libavfilter/vf_identity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_identity.c b/libavfilter/vf_identity.c
index 4e0a44d518..c81c40a640 100644
--- a/libavfilter/vf_identity.c
+++ b/libavfilter/vf_identity.c
@@ -296,7 +296,7 @@ static int config_input_ref(AVFilterLink *inlink)
if (!s->scores)
return AVERROR(ENOMEM);
- for (int t = 0; t < s->nb_threads && s->scores; t++) {
+ for (int t = 0; t < s->nb_threads; t++) {
s->scores[t] = av_calloc(s->nb_components, sizeof(*s->scores[0]));
if (!s->scores[t])
return AVERROR(ENOMEM);