History

avfilter/vf_ssim: remove unnecessary check

For the pointer have been checked in the previous few lines of code

Limin Wang committed 5 years ago

Commit fd3dabe1 parent 92769f21 file · +1 −1Browse files

Unified · Split

libavfilter/vf_ssim.c+1−1
@@ -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);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t