[FFmpeg-cvslog] avfilter/vf_transpose: Don't call av_pix_fmt_desc_get() twice
Andreas Rheinhardt
git at videolan.org
Sun Oct 10 13:07:31 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Oct 5 21:16:44 2021 +0200| [812a4b86a8b21e5855e895ac10a9d042f4de57a5] | committer: Andreas Rheinhardt
avfilter/vf_transpose: Don't call av_pix_fmt_desc_get() twice
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=812a4b86a8b21e5855e895ac10a9d042f4de57a5
---
libavfilter/vf_transpose.c | 4 ++--
1 file 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 ||
More information about the ffmpeg-cvslog
mailing list