mediacodec: do not accept codecs declaring no capabilities
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: Jean-Baptiste Kempf <7b85a41a628204b76aba4326273a3ccc74bd009a@videolan.org>

krichter722/vlc,shyamalschandra/vlc,vlc-mirror/vlc,vlc-mirror/vlc,shyamalschandra/vlc,vlc-mirror/vlc,krichter722/vlc,xkfz007/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.2,vlc-mirror/vlc,jomanmuk/vlc-2.2,shyamalschandra/vlc,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,xkfz007/vlc,shyamalschandra/vlc,krichter722/vlc,krichter722/vlc,shyamalschandra/vlc,xkfz007/vlc,jomanmuk/vlc-2.2,krichter722/vlc,xkfz007/vlc,xkfz007/vlc,xkfz007/vlc,shyamalschandra/vlc,vlc-mirror/vlc,jomanmuk/vlc-2.2,xkfz007/vlc,krichter722/vlc,vlc-mirror/vlc,vlc-mirror/vlc,krichter722/vlc