From 59ee9f78b0cc4fb84ae606fa317d8102ad32a627 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 6 Oct 2012 13:29:37 +0200 Subject: lavfi: do not use av_pix_fmt_descriptors directly. --- libavfilter/vf_gradfun.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libavfilter/vf_gradfun.c') diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c index 31ed639542..7fbcf1a578 100644 --- a/libavfilter/vf_gradfun.c +++ b/libavfilter/vf_gradfun.c @@ -167,8 +167,9 @@ static int query_formats(AVFilterContext *ctx) static int config_input(AVFilterLink *inlink) { GradFunContext *gf = inlink->dst->priv; - int hsub = av_pix_fmt_descriptors[inlink->format].log2_chroma_w; - int vsub = av_pix_fmt_descriptors[inlink->format].log2_chroma_h; + const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format); + int hsub = desc->log2_chroma_w; + int vsub = desc->log2_chroma_h; gf->buf = av_mallocz((FFALIGN(inlink->w, 16) * (gf->radius + 1) / 2 + 32) * sizeof(uint16_t)); if (!gf->buf) -- cgit v1.2.3