Skip to content
Snippets Groups Projects
Commit 93f201fb authored by flx42's avatar flx42 Committed by Jean-Baptiste Kempf
Browse files

mediacodec: do not accept codecs declaring no capabilities


Previously, if profileLevels was NULL or length 0, the codec was
accepted.  Some devices have several codecs for mime type video/avc,
the first one is rejected based on the profile capability but the
second one was accepted since there was no capability declared. Since
the actual capability of the second codec was not better than the
first one, decoding failed.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 50f1dcb7
No related branches found
Tags 3.0.17
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment