Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 22:16:44 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-10 13:04:30 +0300
commit812a4b86a8b21e5855e895ac10a9d042f4de57a5 (patch)
tree557e30328d93b464be79fc2ef08f309ac5ac3cd3 /libavfilter/vf_transpose.c
parent2b72e693c7c03f2901f53a51b195fb0c7c19c960 (diff)
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.c4
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 ||