lavfi/subtitles: load attached fonts to libass.
authorFacundo Gaich <facugaich@gmail.com>
Wed, 9 Apr 2014 03:18:35 +0000 (00:18 -0300)
committerClément Bœsch <u@pkh.me>
Sun, 13 Apr 2014 10:06:24 +0000 (12:06 +0200)
commit7e6b3ad6930c2f1daa5c4831bbeda3fb931921e6
treee80bb97f734f157a2d83d3a82a1446fbeb429d03
parent88c4e5a049aa42a3c005cae5eff7cc7718c6f3b0
lavfi/subtitles: load attached fonts to libass.

Videos with complex typesetting usually have font files embedded
as attachment streams. vf_subtitles now finds all attachment
streams with a MIME type associated with fonts and loads them
to libass so it can use them for rendering.

The code was basically ported from mpv's loadfile.c@929793be7

Signed-off-by: Facundo Gaich <facugaich@gmail.com>
libavfilter/vf_subtitles.c