]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_lenscorrection.c
avfilter: Constify all AVFilters
[ffmpeg] / libavfilter / vf_lenscorrection.c
index a74adea4a6e9cd560e855be1151917cb38f14886..7bd008d3d8191683b87ecb101e0ce9e09db377d3 100644 (file)
@@ -38,8 +38,6 @@
 
 typedef struct LenscorrectionCtx {
     const AVClass *av_class;
-    int width;
-    int height;
     int planewidth[4];
     int planeheight[4];
     int depth;
@@ -262,8 +260,6 @@ static int config_output(AVFilterLink *outlink)
     rect->planeheight[0] = rect->planeheight[3] = inlink->h;
     rect->planewidth[1]  = rect->planewidth[2]  = AV_CEIL_RSHIFT(inlink->w, pixdesc->log2_chroma_w);
     rect->planewidth[0]  = rect->planewidth[3]  = inlink->w;
-    outlink->w = rect->width = inlink->w;
-    outlink->h = rect->height = inlink->h;
     rect->nb_planes = av_pix_fmt_count_planes(inlink->format);
     rect->filter_slice = rect->depth <= 8 ? filter8_slice : filter16_slice;
     if (rect->interpolation)
@@ -361,7 +357,7 @@ static const AVFilterPad lenscorrection_outputs[] = {
     { NULL }
 };
 
-AVFilter ff_vf_lenscorrection = {
+const AVFilter ff_vf_lenscorrection = {
     .name          = "lenscorrection",
     .description   = NULL_IF_CONFIG_SMALL("Rectify the image by correcting for lens distortion."),
     .priv_size     = sizeof(LenscorrectionCtx),