Unified · Split
| @@ -46,10 +46,10 @@ AVFILTER_DEFINE_CLASS(hflip); · 45 unmodified lines | |||
| 46 | static int query_formats(AVFilterContext *ctx) | 46 | static int query_formats(AVFilterContext *ctx) |
| 47 | { | 47 | { |
| 48 | AVFilterFormats *pix_fmts = NULL; | 48 | AVFilterFormats *pix_fmts = NULL; |
| 49 | const AVPixFmtDescriptor *desc; | ||
| 49 | int fmt, ret; | 50 | int fmt, ret; |
| 50 | 51 | ||
| 51 | for (fmt = 0; av_pix_fmt_desc_get(fmt); fmt++) { | 52 | for (fmt = 0; desc = av_pix_fmt_desc_get(fmt); fmt++) { |
| 52 | const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt); | ||
| 53 | if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL || | 53 | if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL || |
| 54 | desc->flags & AV_PIX_FMT_FLAG_BITSTREAM || | 54 | desc->flags & AV_PIX_FMT_FLAG_BITSTREAM || |
| 55 | (desc->log2_chroma_w != desc->log2_chroma_h && | 55 | (desc->log2_chroma_w != desc->log2_chroma_h && |