diff options
author | Matthieu Bouron <matthieu.bouron@stupeflix.com> | 2016-10-07 12:20:33 +0300 |
---|---|---|
committer | Matthieu Bouron <matthieu.bouron@stupeflix.com> | 2016-10-19 10:52:15 +0300 |
commit | b8c158a4eddb79ba3964dbe51b0e1db01454f96a (patch) | |
tree | d76d1a65b680369f01790156029897c54cf9b669 | |
parent | 23b6f880d6d7418ca75783767e7f7c02af7cf456 (diff) |
lavc/mediacodec_wrapper: do not discard codecs reporting they do not support any profile
Depending on the device, some (VP8/VP9/...) decoders report that they do
not support any profiles.
-rw-r--r-- | libavcodec/mediacodec_wrapper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mediacodec_wrapper.c b/libavcodec/mediacodec_wrapper.c index 97e3a29646..c2af950f39 100644 --- a/libavcodec/mediacodec_wrapper.c +++ b/libavcodec/mediacodec_wrapper.c @@ -480,6 +480,9 @@ char *ff_AMediaCodecList_getCodecNameByType(const char *mime, int profile, int e } profile_count = (*env)->GetArrayLength(env, profile_levels); + if (!profile_count) { + found_codec = 1; + } for (k = 0; k < profile_count; k++) { int supported_profile = 0; |