]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_vignette.c
avfilter: Constify all AVFilters
[ffmpeg] / libavfilter / vf_vignette.c
index 47b59e5ba09033fe33f3b1f3621c3a0e87e1c6b2..e5842b19dae749b32b9dea9925f5dddacf182a74 100644 (file)
@@ -155,9 +155,6 @@ static double get_natural_factor(const VignetteContext *s, int x, int y)
     }
 }
 
-#define TS2D(ts)     ((ts) == AV_NOPTS_VALUE ? NAN : (double)(ts))
-#define TS2T(ts, tb) ((ts) == AV_NOPTS_VALUE ? NAN : (double)(ts) * av_q2d(tb))
-
 static void update_context(VignetteContext *s, AVFilterLink *inlink, AVFrame *frame)
 {
     int x, y;
@@ -345,7 +342,7 @@ static const AVFilterPad vignette_outputs[] = {
     { NULL }
 };
 
-AVFilter ff_vf_vignette = {
+const AVFilter ff_vf_vignette = {
     .name          = "vignette",
     .description   = NULL_IF_CONFIG_SMALL("Make or reverse a vignette effect."),
     .priv_size     = sizeof(VignetteContext),