if (!s->scores)
return AVERROR(ENOMEM);
- for (int t = 0; t < s->nb_threads && s->scores; t++) {
+ for (int t = 0; t < s->nb_threads; t++) {
s->scores[t] = av_calloc(s->nb_components, sizeof(*s->scores[0]));
if (!s->scores[t])
return AVERROR(ENOMEM);
#define identity_options options
FRAMESYNC_DEFINE_CLASS(identity, IdentityContext, fs);
-AVFilter ff_vf_identity = {
+const AVFilter ff_vf_identity = {
.name = "identity",
.description = NULL_IF_CONFIG_SMALL("Calculate the Identity between two video streams."),
.preinit = identity_framesync_preinit,
#define msad_options options
FRAMESYNC_DEFINE_CLASS(msad, IdentityContext, fs);
-AVFilter ff_vf_msad = {
+const AVFilter ff_vf_msad = {
.name = "msad",
.description = NULL_IF_CONFIG_SMALL("Calculate the MSAD between two video streams."),
.preinit = msad_framesync_preinit,