]> git.sesse.net Git - vlc/commit
omxil: Factorize samsung decoder quirk identification to a separate function
authorMartin Storsjö <martin@martin.st>
Sat, 2 Feb 2013 14:33:13 +0000 (16:33 +0200)
committerMartin Storsjö <martin@martin.st>
Sat, 2 Feb 2013 17:15:07 +0000 (19:15 +0200)
commit4a19daba2ee38598cd13fd6365c669d1fd4c2b7c
tree00d292b6e864181da555f4caee0a2fb8b84c43c2
parent49362976f0f9dbe9e4b3968bee698f34e2a4cda5
omxil: Factorize samsung decoder quirk identification to a separate function

Previously, we tried to see if the samsung decoder name followed
a certain pattern (ending .Decoder, for good decoders, assuming
we should ignore the padding specified by all other samsung
decoders). This simple pattern didn't turn out to apply for some
other deocders, so instead explicitly list the components that
we know we should ignore the specified padding values.

Also refactor the same check from both the omxil and mediacodec
files into one utility function.

Signed-off-by: Martin Storsjö <martin@martin.st>
modules/codec/omxil/android_mediacodec.c
modules/codec/omxil/omxil.c
modules/codec/omxil/omxil_utils.h
modules/codec/omxil/utils.c