]> git.sesse.net Git - vlc/commit
mediacodec: do not accept codecs declaring no capabilities
authorFelix Abecassis <felix.abecassis@gmail.com>
Wed, 19 Feb 2014 15:36:09 +0000 (16:36 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 19 Feb 2014 15:42:24 +0000 (16:42 +0100)
commit93f201fbe17b194a16031a497e97704384501394
treee4b70127c36546839f6edbb99dfe715a83afd6b5
parent50f1dcb7204dad1d5ed017eee2ade85d07d57701
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 <jb@videolan.org>
modules/codec/omxil/android_mediacodec.c