[FFmpeg-cvslog] avfilter/vf_fieldorder: Simplify setting common pixel formats
Andreas Rheinhardt
git at videolan.org
Mon Aug 16 00:41:20 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Aug 15 08:01:17 2021 +0200| [4049b34aca8fba718dc8a220c7765e5131d82a1b] | committer: Andreas Rheinhardt
avfilter/vf_fieldorder: Simplify setting common pixel formats
by using ff_set_common_formats().
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4049b34aca8fba718dc8a220c7765e5131d82a1b
---
libavfilter/vf_fieldorder.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/libavfilter/vf_fieldorder.c b/libavfilter/vf_fieldorder.c
index eefa417fb3..b521d36f52 100644
--- a/libavfilter/vf_fieldorder.c
+++ b/libavfilter/vf_fieldorder.c
@@ -58,9 +58,7 @@ static int query_formats(AVFilterContext *ctx)
(ret = ff_add_format(&formats, pix_fmt)) < 0)
return ret;
}
- if ((ret = ff_formats_ref(formats, &ctx->inputs[0]->outcfg.formats)) < 0 ||
- (ret = ff_formats_ref(formats, &ctx->outputs[0]->incfg.formats)) < 0)
- return ret;
+ return ff_set_common_formats(ctx, formats);
}
return 0;
More information about the ffmpeg-cvslog
mailing list