avfilter/vf_identity: remove unnecessary check
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
8410000f17
commit
d150a9eb44
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue