From 9bbf6c681a8e441b5ce145fd202a1c1054cec71f Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 18 Mar 2013 22:26:49 +0100 Subject: vf_fieldorder: cosmetics, remove an extra linebreak --- libavfilter/vf_fieldorder.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavfilter/vf_fieldorder.c') diff --git a/libavfilter/vf_fieldorder.c b/libavfilter/vf_fieldorder.c index a5b85e22b8..2918cd897b 100644 --- a/libavfilter/vf_fieldorder.c +++ b/libavfilter/vf_fieldorder.c @@ -35,8 +35,7 @@ #include "internal.h" #include "video.h" -typedef struct -{ +typedef struct { const AVClass *class; int dst_tff; ///< output bff/tff int line_size[4]; ///< bytes of pixel data per line for each plane -- cgit v1.2.3 From d64cf54b349ccd3d797b778b3ca16b25dc3995b2 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 18 Mar 2013 20:44:36 +0100 Subject: vf_fieldorder: use the name 's' for the pointer to the private context This is shorter and consistent across filters. --- libavfilter/vf_fieldorder.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'libavfilter/vf_fieldorder.c') diff --git a/libavfilter/vf_fieldorder.c b/libavfilter/vf_fieldorder.c index 2918cd897b..19b07b11e8 100644 --- a/libavfilter/vf_fieldorder.c +++ b/libavfilter/vf_fieldorder.c @@ -70,17 +70,15 @@ static int query_formats(AVFilterContext *ctx) static int config_input(AVFilterLink *inlink) { - AVFilterContext *ctx = inlink->dst; - FieldOrderContext *fieldorder = ctx->priv; + AVFilterContext *ctx = inlink->dst; + FieldOrderContext *s = ctx->priv; int plane; /** full an array with the number of bytes that the video * data occupies per line for each plane of the input video */ for (plane = 0; plane < 4; plane++) { - fieldorder->line_size[plane] = av_image_get_linesize( - inlink->format, - inlink->w, - plane); + s->line_size[plane] = av_image_get_linesize(inlink->format, inlink->w, + plane); } return 0; -- cgit v1.2.3