diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 21:16:44 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-10 12:04:30 +0200 |
commit | 812a4b86a8b21e5855e895ac10a9d042f4de57a5 (patch) | |
tree | 557e30328d93b464be79fc2ef08f309ac5ac3cd3 /libavfilter/vf_transpose.c | |
parent | 2b72e693c7c03f2901f53a51b195fb0c7c19c960 (diff) | |
download | ffmpeg-812a4b86a8b21e5855e895ac10a9d042f4de57a5.tar.gz |
avfilter/vf_transpose: Don't call av_pix_fmt_desc_get() twice
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_transpose.c')
-rw-r--r-- | libavfilter/vf_transpose.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_transpose.c b/libavfilter/vf_transpose.c index b0354b938f..f9f0d70cd5 100644 --- a/libavfilter/vf_transpose.c +++ b/libavfilter/vf_transpose.c @@ -55,10 +55,10 @@ typedef struct TransContext { 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_PAL || desc->flags & AV_PIX_FMT_FLAG_HWACCEL || desc->flags & AV_PIX_FMT_FLAG_BITSTREAM || |