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