lavfi/kerndeint: use av_pix_fmt_desc_get instead of directly accessing the table
authorHendrik Leppkes <h.leppkes@gmail.com>
Fri, 15 Feb 2013 14:53:54 +0000 (15:53 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 15 Feb 2013 18:07:37 +0000 (19:07 +0100)
Fixes FATE in MSVC DLL builds.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_kerndeint.c

index 382b8a7..12eb969 100644 (file)
@@ -96,7 +96,7 @@ static int query_formats(AVFilterContext *ctx)
 static int config_props(AVFilterLink *inlink)
 {
     KerndeintContext *kerndeint = inlink->dst->priv;
-    const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[inlink->format];
+    const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format);
     int ret;
 
     kerndeint->vsub = desc->log2_chroma_h;