mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/vf_transpose: Don't call av_pix_fmt_desc_get() twice
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
2b72e693c7
commit
812a4b86a8
@ -55,10 +55,10 @@ typedef struct TransContext {
|
|||||||
static int query_formats(AVFilterContext *ctx)
|
static int query_formats(AVFilterContext *ctx)
|
||||||
{
|
{
|
||||||
AVFilterFormats *pix_fmts = NULL;
|
AVFilterFormats *pix_fmts = NULL;
|
||||||
|
const AVPixFmtDescriptor *desc;
|
||||||
int fmt, ret;
|
int fmt, ret;
|
||||||
|
|
||||||
for (fmt = 0; av_pix_fmt_desc_get(fmt); fmt++) {
|
for (fmt = 0; desc = av_pix_fmt_desc_get(fmt); fmt++) {
|
||||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt);
|
|
||||||
if (!(desc->flags & AV_PIX_FMT_FLAG_PAL ||
|
if (!(desc->flags & AV_PIX_FMT_FLAG_PAL ||
|
||||||
desc->flags & AV_PIX_FMT_FLAG_HWACCEL ||
|
desc->flags & AV_PIX_FMT_FLAG_HWACCEL ||
|
||||||
desc->flags & AV_PIX_FMT_FLAG_BITSTREAM ||
|
desc->flags & AV_PIX_FMT_FLAG_BITSTREAM ||
|
||||||
|
Loading…
Reference in New Issue
Block a user