From e76064172098582148665df15484ae5d4e5194a9 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Fri, 1 Jan 2016 16:25:01 +0100 Subject: lavc: add vp9 profiles to AVCodecDescriptor --- libavcodec/vp9.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'libavcodec/vp9.c') diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index d5bdbc7e6c..9a0bb8224d 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -24,6 +24,7 @@ #include "avcodec.h" #include "get_bits.h" #include "internal.h" +#include "profiles.h" #include "thread.h" #include "videodsp.h" #include "vp56.h" @@ -4336,14 +4337,6 @@ static int vp9_decode_update_thread_context(AVCodecContext *dst, const AVCodecCo } #endif -static const AVProfile profiles[] = { - { FF_PROFILE_VP9_0, "Profile 0" }, - { FF_PROFILE_VP9_1, "Profile 1" }, - { FF_PROFILE_VP9_2, "Profile 2" }, - { FF_PROFILE_VP9_3, "Profile 3" }, - { FF_PROFILE_UNKNOWN }, -}; - AVCodec ff_vp9_decoder = { .name = "vp9", .long_name = NULL_IF_CONFIG_SMALL("Google VP9"), @@ -4357,5 +4350,5 @@ AVCodec ff_vp9_decoder = { .flush = vp9_decode_flush, .init_thread_copy = ONLY_IF_THREADS_ENABLED(vp9_decode_init_thread_copy), .update_thread_context = ONLY_IF_THREADS_ENABLED(vp9_decode_update_thread_context), - .profiles = NULL_IF_CONFIG_SMALL(profiles), + .profiles = NULL_IF_CONFIG_SMALL(ff_vp9_profiles), }; -- cgit v1.2.3