]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_cover_rect.c
avfilter: Constify all AVFilters
[ffmpeg] / libavfilter / vf_cover_rect.c
index f7f61038e39b2ca2f93d132fa21f6f59dddd2f58..26a0fb3a4de84f1821b2e2889c2e314ed7ba1772 100644 (file)
@@ -152,7 +152,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
     }
 
     if (!xendptr || *xendptr || !yendptr || *yendptr ||
-        !wendptr || *wendptr || !hendptr || !hendptr
+        !wendptr || *wendptr || !hendptr || *hendptr
     ) {
         return ff_filter_frame(ctx->outputs[0], in);
     }
@@ -198,6 +198,7 @@ static av_cold void uninit(AVFilterContext *ctx)
 
     if (cover->cover_frame)
         av_freep(&cover->cover_frame->data[0]);
+    av_frame_free(&cover->cover_frame);
 }
 
 static av_cold int init(AVFilterContext *ctx)
@@ -247,7 +248,7 @@ static const AVFilterPad cover_rect_outputs[] = {
     { NULL }
 };
 
-AVFilter ff_vf_cover_rect = {
+const AVFilter ff_vf_cover_rect = {
     .name            = "cover_rect",
     .description     = NULL_IF_CONFIG_SMALL("Find and cover a user specified object."),
     .priv_size       = sizeof(CoverContext),