diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-10-06 13:29:37 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-10-12 12:45:39 +0200 |
commit | 59ee9f78b0cc4fb84ae606fa317d8102ad32a627 (patch) | |
tree | 253bd434e8b7416d62d8d5f16f1f443cf05c7bd4 /libavfilter/vf_hqdn3d.c | |
parent | 50ba57e0ce63d9904269ea0728936a0c79f8bfb5 (diff) | |
download | ffmpeg-59ee9f78b0cc4fb84ae606fa317d8102ad32a627.tar.gz |
lavfi: do not use av_pix_fmt_descriptors directly.
Diffstat (limited to 'libavfilter/vf_hqdn3d.c')
-rw-r--r-- | libavfilter/vf_hqdn3d.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavfilter/vf_hqdn3d.c b/libavfilter/vf_hqdn3d.c index 03e1d830bd..4ed8905979 100644 --- a/libavfilter/vf_hqdn3d.c +++ b/libavfilter/vf_hqdn3d.c @@ -295,11 +295,12 @@ static int query_formats(AVFilterContext *ctx) static int config_input(AVFilterLink *inlink) { HQDN3DContext *hqdn3d = inlink->dst->priv; + const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format); int i; - hqdn3d->hsub = av_pix_fmt_descriptors[inlink->format].log2_chroma_w; - hqdn3d->vsub = av_pix_fmt_descriptors[inlink->format].log2_chroma_h; - hqdn3d->depth = av_pix_fmt_descriptors[inlink->format].comp[0].depth_minus1+1; + hqdn3d->hsub = desc->log2_chroma_w; + hqdn3d->vsub = desc->log2_chroma_h; + hqdn3d->depth = desc->comp[0].depth_minus1+1; hqdn3d->line = av_malloc(inlink->w * sizeof(*hqdn3d->line)); if (!hqdn3d->line) |