Commit b8c158a4 authored by Matthieu Bouron's avatar Matthieu Bouron

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.
parent 23b6f880
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment