From 59ee9f78b0cc4fb84ae606fa317d8102ad32a627 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 6 Oct 2012 13:29:37 +0200 Subject: lavfi: do not use av_pix_fmt_descriptors directly. --- libavfilter/video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavfilter/video.c') diff --git a/libavfilter/video.c b/libavfilter/video.c index 1710126697..49091ad010 100644 --- a/libavfilter/video.c +++ b/libavfilter/video.c @@ -339,7 +339,8 @@ int ff_draw_slice(AVFilterLink *link, int y, int h, int slice_dir) /* copy the slice if needed for permission reasons */ if (link->src_buf) { - vsub = av_pix_fmt_descriptors[link->format].log2_chroma_h; + const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(link->format); + vsub = desc->log2_chroma_h; for (i = 0; i < 4; i++) { if (link->src_buf->data[i]) { -- cgit v1.2.3