diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-01-01 16:25:01 +0100 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-01-01 16:25:50 +0100 |
commit | e76064172098582148665df15484ae5d4e5194a9 (patch) | |
tree | 4b4fc134ad23cf84c95393c3d6508af767da8194 /libavcodec/vp9.c | |
parent | 5e8b05345243cdec3ca01116ce130da812ffed3d (diff) | |
download | ffmpeg-e76064172098582148665df15484ae5d4e5194a9.tar.gz |
lavc: add vp9 profiles to AVCodecDescriptor
Diffstat (limited to 'libavcodec/vp9.c')
-rw-r--r-- | libavcodec/vp9.c | 11 |
1 files changed, 2 insertions, 9 deletions
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), }; |