summaryrefslogtreecommitdiff
path: root/libavfilter/vf_vflip.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/vf_vflip.c')
-rw-r--r--libavfilter/vf_vflip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_vflip.c b/libavfilter/vf_vflip.c
index 04791036e0..f12290aa03 100644
--- a/libavfilter/vf_vflip.c
+++ b/libavfilter/vf_vflip.c
@@ -36,8 +36,9 @@ typedef struct {
static int config_input(AVFilterLink *link)
{
FlipContext *flip = link->dst->priv;
+ const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(link->format);
- flip->vsub = av_pix_fmt_descriptors[link->format].log2_chroma_h;
+ flip->vsub = desc->log2_chroma_h;
return 0;
}