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_hflip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavfilter/vf_hflip.c') diff --git a/libavfilter/vf_hflip.c b/libavfilter/vf_hflip.c index ea1db4fe29..3ae0fc6062 100644 --- a/libavfilter/vf_hflip.c +++ b/libavfilter/vf_hflip.c @@ -75,11 +75,11 @@ static int query_formats(AVFilterContext *ctx) static int config_props(AVFilterLink *inlink) { FlipContext *flip = inlink->dst->priv; - const AVPixFmtDescriptor *pix_desc = &av_pix_fmt_descriptors[inlink->format]; + const AVPixFmtDescriptor *pix_desc = av_pix_fmt_desc_get(inlink->format); av_image_fill_max_pixsteps(flip->max_step, NULL, pix_desc); - flip->hsub = av_pix_fmt_descriptors[inlink->format].log2_chroma_w; - flip->vsub = av_pix_fmt_descriptors[inlink->format].log2_chroma_h; + flip->hsub = pix_desc->log2_chroma_w; + flip->vsub = pix_desc->log2_chroma_h; return 0; } -- cgit v1.2.3