diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-10-06 15:29:37 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-10-12 14:45:39 +0400 |
commit | 59ee9f78b0cc4fb84ae606fa317d8102ad32a627 (patch) | |
tree | 253bd434e8b7416d62d8d5f16f1f443cf05c7bd4 /libavfilter/vf_drawbox.c | |
parent | 50ba57e0ce63d9904269ea0728936a0c79f8bfb5 (diff) |
lavfi: do not use av_pix_fmt_descriptors directly.
Diffstat (limited to 'libavfilter/vf_drawbox.c')
-rw-r--r-- | libavfilter/vf_drawbox.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavfilter/vf_drawbox.c b/libavfilter/vf_drawbox.c index 39dd2e597d..fbae0ee841 100644 --- a/libavfilter/vf_drawbox.c +++ b/libavfilter/vf_drawbox.c @@ -81,9 +81,10 @@ static int query_formats(AVFilterContext *ctx) static int config_input(AVFilterLink *inlink) { DrawBoxContext *drawbox = inlink->dst->priv; + const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format); - drawbox->hsub = av_pix_fmt_descriptors[inlink->format].log2_chroma_w; - drawbox->vsub = av_pix_fmt_descriptors[inlink->format].log2_chroma_h; + drawbox->hsub = desc->log2_chroma_w; + drawbox->vsub = desc->log2_chroma_h; if (drawbox->w == 0) drawbox->w = inlink->w; if (drawbox->h == 0) drawbox->h = inlink->h; |