1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avfilter/vf_identity: remove unnecessary check

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
Limin Wang
2021-03-13 10:36:04 +08:00
parent 8410000f17
commit d150a9eb44

View File

@@ -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);