[FFmpeg-devel] [PATCH v2] lavfi/subtitles: load attached fonts to libass.

Clément Bœsch u at pkh.me
Sun Apr 13 13:09:20 CEST 2014


On Sun, Apr 13, 2014 at 12:01:50PM +0200, wm4 wrote:
> On Wed,  9 Apr 2014 00:18:35 -0300
> Facundo Gaich <facugaich at gmail.com> wrote:
> 
> > 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 at 929793be7
> > 
> > Signed-off-by: Facundo Gaich <facugaich at gmail.com>
> > ---
> >  libavfilter/vf_subtitles.c | 54 ++++++++++++++++++++++++++++++++++++++++++++--
> >  1 file changed, 52 insertions(+), 2 deletions(-)
> > 
> > diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c
[...]
> Didn't test it, but looks good to me.

Tested, works. Applied. Thanks to both of you.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140413/72cf0598/attachment.asc>


More information about the ffmpeg-devel mailing list