summaryrefslogtreecommitdiff
path: root/libavfilter/video.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-10-06 13:29:37 +0200
committerAnton Khirnov <anton@khirnov.net>2012-10-12 12:45:39 +0200
commit59ee9f78b0cc4fb84ae606fa317d8102ad32a627 (patch)
tree253bd434e8b7416d62d8d5f16f1f443cf05c7bd4 /libavfilter/video.c
parent50ba57e0ce63d9904269ea0728936a0c79f8bfb5 (diff)
lavfi: do not use av_pix_fmt_descriptors directly.
Diffstat (limited to 'libavfilter/video.c')
-rw-r--r--libavfilter/video.c3
1 files changed, 2 insertions, 1 deletions
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]) {