diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-29 15:57:43 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:29 +0200 |
commit | 31a373ce71a10f50a603149e4201280996ff7ed1 (patch) | |
tree | 4eca13e4a1b76a8f068078a43a3e21acb556ec37 /libavfilter/vf_fieldorder.c | |
parent | 71f9f7dc735eedea27839b51ca0e606b27dbe2f4 (diff) |
avfilter: Reindentation after query_formats changes
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_fieldorder.c')
-rw-r--r-- | libavfilter/vf_fieldorder.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/libavfilter/vf_fieldorder.c b/libavfilter/vf_fieldorder.c index 85b6688fb3..52b4b3d8aa 100644 --- a/libavfilter/vf_fieldorder.c +++ b/libavfilter/vf_fieldorder.c @@ -40,24 +40,23 @@ typedef struct FieldOrderContext { static int query_formats(AVFilterContext *ctx) { + const AVPixFmtDescriptor *desc = NULL; AVFilterFormats *formats; - enum AVPixelFormat pix_fmt; int ret; /** accept any input pixel format that is not hardware accelerated, not * a bitstream format, and does not have vertically sub-sampled chroma */ - const AVPixFmtDescriptor *desc = NULL; - formats = NULL; - while ((desc = av_pix_fmt_desc_next(desc))) { - pix_fmt = av_pix_fmt_desc_get_id(desc); - if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL || - desc->flags & AV_PIX_FMT_FLAG_PAL || - desc->flags & AV_PIX_FMT_FLAG_BITSTREAM) && - desc->nb_components && !desc->log2_chroma_h && - (ret = ff_add_format(&formats, pix_fmt)) < 0) - return ret; - } - return ff_set_common_formats(ctx, formats); + formats = NULL; + while ((desc = av_pix_fmt_desc_next(desc))) { + enum AVPixelFormat pix_fmt = av_pix_fmt_desc_get_id(desc); + if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL || + desc->flags & AV_PIX_FMT_FLAG_PAL || + desc->flags & AV_PIX_FMT_FLAG_BITSTREAM) && + desc->nb_components && !desc->log2_chroma_h && + (ret = ff_add_format(&formats, pix_fmt)) < 0) + return ret; + } + return ff_set_common_formats(ctx, formats); } static int config_input(AVFilterLink *inlink) |