Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-10-06 15:29:37 +0400
committerAnton Khirnov <anton@khirnov.net>2012-10-12 14:45:39 +0400
commit59ee9f78b0cc4fb84ae606fa317d8102ad32a627 (patch)
tree253bd434e8b7416d62d8d5f16f1f443cf05c7bd4 /libavfilter/vf_slicify.c
parent50ba57e0ce63d9904269ea0728936a0c79f8bfb5 (diff)
lavfi: do not use av_pix_fmt_descriptors directly.
Diffstat (limited to 'libavfilter/vf_slicify.c')
-rw-r--r--libavfilter/vf_slicify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_slicify.c b/libavfilter/vf_slicify.c
index f7db66848a..f81ab0d0c1 100644
--- a/libavfilter/vf_slicify.c
+++ b/libavfilter/vf_slicify.c
@@ -54,8 +54,9 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
static int config_props(AVFilterLink *link)
{
SliceContext *slice = link->dst->priv;
+ const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(link->format);
- slice->vshift = av_pix_fmt_descriptors[link->format].log2_chroma_h;
+ slice->vshift = desc->log2_chroma_h;
return 0;
}