diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-12 19:04:58 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-12 19:04:58 +0400 |
commit | 13afee951a49964abb6d3e2d11644ac9d5ded2c7 (patch) | |
tree | ba98a70ac6f80dea08f21badfbbb64319541d826 /libavfilter/vf_hqdn3d.c | |
parent | af7dd79a323090b14a7fb9ef24a3f6a24dc6d2db (diff) | |
parent | 59ee9f78b0cc4fb84ae606fa317d8102ad32a627 (diff) |
Merge commit '59ee9f78b0cc4fb84ae606fa317d8102ad32a627'
* commit '59ee9f78b0cc4fb84ae606fa317d8102ad32a627':
lavfi: do not use av_pix_fmt_descriptors directly.
Conflicts:
libavfilter/buffersrc.c
libavfilter/drawutils.c
libavfilter/filtfmts.c
libavfilter/vf_ass.c
libavfilter/vf_boxblur.c
libavfilter/vf_drawtext.c
libavfilter/vf_lut.c
libavfilter/vf_pad.c
libavfilter/vf_scale.c
libavfilter/vf_showinfo.c
libavfilter/vf_transpose.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 c899ecf52a..f7311df024 100644 --- a/libavfilter/vf_hqdn3d.c +++ b/libavfilter/vf_hqdn3d.c @@ -294,11 +294,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) |