]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_dedot.c
avfilter: Constify all AVFilters
[ffmpeg] / libavfilter / vf_dedot.c
index 1fb7bfe866a1f4a0fa925dee7a35e77feb4dada0..b79d4a51c465f7aecb4c2a54803af2d9f87ea7ca 100644 (file)
@@ -313,7 +313,8 @@ static int activate(AVFilterContext *ctx)
                                                FFMIN(s->planeheight[2],
                                                ff_filter_get_nb_threads(ctx)));
                     }
-                }
+                } else
+                    av_frame_free(&out);
             } else if (!out) {
                 ret = AVERROR(ENOMEM);
             }
@@ -400,7 +401,7 @@ static const AVFilterPad outputs[] = {
 
 AVFILTER_DEFINE_CLASS(dedot);
 
-AVFilter ff_vf_dedot = {
+const AVFilter ff_vf_dedot = {
     .name          = "dedot",
     .description   = NULL_IF_CONFIG_SMALL("Reduce cross-luminance and cross-color."),
     .priv_size     = sizeof(DedotContext),