summaryrefslogtreecommitdiff
path: root/libavfilter/vf_ssim.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2021-03-13 10:34:12 +0800
committerLimin Wang <lance.lmwang@gmail.com>2021-05-01 08:45:30 +0800
commitfd3dabe68e14cebb3664b155b9e072ad60c11e91 (patch)
treed242ac29889b22ae3d4341d7c30ae18546c5b19d /libavfilter/vf_ssim.c
parent92769f260da8bf38956212cc6a26f98bcf80c6c7 (diff)
downloadffmpeg-fd3dabe68e14cebb3664b155b9e072ad60c11e91.tar.gz
avfilter/vf_ssim: remove unnecessary check
For the pointer have been checked in the previous few lines of code Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavfilter/vf_ssim.c')
-rw-r--r--libavfilter/vf_ssim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_ssim.c b/libavfilter/vf_ssim.c
index e004b36e76..c6e4fe286a 100644
--- a/libavfilter/vf_ssim.c
+++ b/libavfilter/vf_ssim.c
@@ -496,7 +496,7 @@ static int config_input_ref(AVFilterLink *inlink)
if (!s->score)
return AVERROR(ENOMEM);
- for (int t = 0; t < s->nb_threads && s->score; t++) {
+ for (int t = 0; t < s->nb_threads; t++) {
s->score[t] = av_calloc(s->nb_components, sizeof(*s->score[0]));
if (!s->score[t])
return AVERROR(ENOMEM);