aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vsrc_mptestsrc.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2012-10-20 06:43:48 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-20 18:00:13 +0200
commit79393a8363d6bb9920754247df00f1b5259e6efd (patch)
treea8991d78db0652fc3b004ade2f3c3a0365f9fda3 /libavfilter/vsrc_mptestsrc.c
parent2c5b92fe90463402be6bf611ef40195f86f434fd (diff)
downloadffmpeg-79393a8363d6bb9920754247df00f1b5259e6efd.tar.gz
Replace usage of the deprecated av_pix_fmt_descriptors array with av_pix_fmt_desc_get
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vsrc_mptestsrc.c')
-rw-r--r--libavfilter/vsrc_mptestsrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vsrc_mptestsrc.c b/libavfilter/vsrc_mptestsrc.c
index 9589b519ad..2b416376b1 100644
--- a/libavfilter/vsrc_mptestsrc.c
+++ b/libavfilter/vsrc_mptestsrc.c
@@ -298,7 +298,7 @@ static int config_props(AVFilterLink *outlink)
{
AVFilterContext *ctx = outlink->src;
MPTestContext *test = ctx->priv;
- const AVPixFmtDescriptor *pix_desc = &av_pix_fmt_descriptors[outlink->format];
+ const AVPixFmtDescriptor *pix_desc = av_pix_fmt_desc_get(outlink->format);
test->hsub = pix_desc->log2_chroma_w;
test->vsub = pix_desc->log2_chroma_h;