]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_ssim.c
avfilter/vf_ssim: remove unnecessary check
[ffmpeg] / libavfilter / vf_ssim.c
index ebb314c69f349fd60b67e702efeab32cf33d25c3..c6e4fe286a53349766965378eb317e75de967b19 100644 (file)
@@ -496,7 +496,7 @@ static int config_input_ref(AVFilterLink *inlink)
     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);
@@ -593,7 +593,7 @@ static const AVFilterPad ssim_outputs[] = {
     { 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,