For the pointer have been checked in the previous few lines of code
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
if (!s->score)
return AVERROR(ENOMEM);
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);
s->score[t] = av_calloc(s->nb_components, sizeof(*s->score[0]));
if (!s->score[t])
return AVERROR(ENOMEM);