libass: match font attachments based on extension
commitb784346e789814362e196e513a8988cd02d96bac
authorGrigori Goronzy <greg@blackbox>
Tue, 1 Jun 2010 20:49:22 +0000 (1 22:49 +0200)
committerGrigori Goronzy <greg@blackbox>
Tue, 1 Jun 2010 21:15:41 +0000 (1 23:15 +0200)
treee9d9665f9bf5c26d3b04ec52b73e5b89a25324d9
parent2fcd4cf73e1a06119e5c3284abe05942967ce3ad
libass: match font attachments based on extension

Instead of only relying on the MIME type, use the file extension as a
fallback for deciding which attachments are fonts and should be fed to
libass.
This also refactors the check into a separate function in mpcommon.
mencoder.c
mpcommon.c
mpcommon.h
mplayer.c