Message ID | 1619700601-9307-1-git-send-email-lance.lmwang@gmail.com |
---|---|
State | Accepted |
Commit | fd3dabe68e14cebb3664b155b9e072ad60c11e91 |
Headers | show |
Series | [FFmpeg-devel,1/4] avfilter/vf_ssim: remove unnecessary check | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
andriy/PPC64_make | success | Make finished |
andriy/PPC64_make_fate | success | Make fate finished |
diff --git a/libavfilter/vf_ssim.c b/libavfilter/vf_ssim.c index e004b36..c6e4fe2 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);