summaryrefslogtreecommitdiff
path: root/libavcodec/mediacodec_wrapper.c
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@stupeflix.com>2016-10-07 11:20:33 +0200
committerMatthieu Bouron <matthieu.bouron@stupeflix.com>2016-10-19 09:52:15 +0200
commitb8c158a4eddb79ba3964dbe51b0e1db01454f96a (patch)
treed76d1a65b680369f01790156029897c54cf9b669 /libavcodec/mediacodec_wrapper.c
parent23b6f880d6d7418ca75783767e7f7c02af7cf456 (diff)
downloadffmpeg-b8c158a4eddb79ba3964dbe51b0e1db01454f96a.tar.gz
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.
Diffstat (limited to 'libavcodec/mediacodec_wrapper.c')
-rw-r--r--libavcodec/mediacodec_wrapper.c3
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;