[FFmpeg-cvslog] lavfi/kerndeint: use av_pix_fmt_desc_get instead of directly accessing the table

Hendrik Leppkes git at videolan.org
Tue Feb 19 01:35:44 CET 2013


ffmpeg | branch: release/1.1 | Hendrik Leppkes <h.leppkes at gmail.com> | Fri Feb 15 15:53:54 2013 +0100| [e14564b9262d072057b52b2a85c974525580aee0] | committer: Michael Niedermayer

lavfi/kerndeint: use av_pix_fmt_desc_get instead of directly accessing the table

Fixes FATE in MSVC DLL builds.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 5ad43af9a62cfd5422dc22f37dd2a2327fa75b7c)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e14564b9262d072057b52b2a85c974525580aee0
---

 libavfilter/vf_kerndeint.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_kerndeint.c b/libavfilter/vf_kerndeint.c
index 382b8a7..12eb969 100644
--- a/libavfilter/vf_kerndeint.c
+++ b/libavfilter/vf_kerndeint.c
@@ -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;



More information about the ffmpeg-cvslog mailing list