[FFmpeg-cvslog] avfilter/vf_hflip: Don't call av_pix_fmt_desc_get() twice
Andreas Rheinhardt
git at videolan.org
Sun Sep 19 06:26:09 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sat Sep 11 15:07:49 2021 +0200| [d8ca8bec2664ea95451207e807c854c76d8fefcb] | committer: Andreas Rheinhardt
avfilter/vf_hflip: Don't call av_pix_fmt_desc_get() twice
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=d8ca8bec2664ea95451207e807c854c76d8fefcb
---
libavfilter/vf_hflip.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_hflip.c b/libavfilter/vf_hflip.c
index 7b5650a821..fa3fd72bd9 100644
--- a/libavfilter/vf_hflip.c
+++ b/libavfilter/vf_hflip.c
@@ -46,10 +46,10 @@ AVFILTER_DEFINE_CLASS(hflip);
static int query_formats(AVFilterContext *ctx)
{
AVFilterFormats *pix_fmts = NULL;
+ const AVPixFmtDescriptor *desc;
int fmt, ret;
- for (fmt = 0; av_pix_fmt_desc_get(fmt); fmt++) {
- const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt);
+ for (fmt = 0; desc = av_pix_fmt_desc_get(fmt); fmt++) {
if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL ||
desc->flags & AV_PIX_FMT_FLAG_BITSTREAM ||
(desc->log2_chroma_w != desc->log2_chroma_h &&
More information about the ffmpeg-cvslog
mailing list