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.
This commit is contained in:
Matthieu Bouron 2016-10-07 11:20:33 +02:00
parent 23b6f880d6
commit b8c158a4ed
1 changed files with 3 additions and 0 deletions

View File

@ -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;