X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_vignette.c;h=e5842b19dae749b32b9dea9925f5dddacf182a74;hb=a04ad248a05e7b613abe09b3bb067f555108d794;hp=47b59e5ba09033fe33f3b1f3621c3a0e87e1c6b2;hpb=ff44c2d4f483cda53859ce019f3815c69239a7e0;p=ffmpeg diff --git a/libavfilter/vf_vignette.c b/libavfilter/vf_vignette.c index 47b59e5ba09..e5842b19dae 100644 --- a/libavfilter/vf_vignette.c +++ b/libavfilter/vf_vignette.c @@ -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),