For the pointer have been checked in the previous few lines of code
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -496,7 +496,7 @@ static int config_input_ref(AVFilterLink *inlink) · 495 unmodified lines | |||
| 496 | if (!s->score) | 496 | if (!s->score) |
| 497 | return AVERROR(ENOMEM); | 497 | return AVERROR(ENOMEM); |
| 498 | 498 | ||
| 499 | for (int t = 0; t < s->nb_threads && s->score; t++) { | 499 | for (int t = 0; t < s->nb_threads; t++) { |
| 500 | s->score[t] = av_calloc(s->nb_components, sizeof(*s->score[0])); | 500 | s->score[t] = av_calloc(s->nb_components, sizeof(*s->score[0])); |
| 501 | if (!s->score[t]) | 501 | if (!s->score[t]) |
| 502 | return AVERROR(ENOMEM); | 502 | return AVERROR(ENOMEM); |