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);
{ NULL }
};
-AVFilter ff_vf_ssim = {
+const AVFilter ff_vf_ssim = {
.name = "ssim",
.description = NULL_IF_CONFIG_SMALL("Calculate the SSIM between two video streams."),
.preinit = ssim_framesync_preinit,