vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Mon Jun 27 14:50:37 2016 +0200| [11984a9611fba9bb8fcaf01fc97a37081bee9d01] | committer: Jean-Baptiste Kempf
subtitles: support MicroDVD fontname extension Ref #1825 > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=11984a9611fba9bb8fcaf01fc97a37081bee9d01 --- modules/codec/subsdec.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/codec/subsdec.c b/modules/codec/subsdec.c index 74c47ad..3949cd8 100644 --- a/modules/codec/subsdec.c +++ b/modules/codec/subsdec.c @@ -979,6 +979,11 @@ static text_segment_t* ParseSubtitles( int *pi_align, const char *psz_subtitle ) p_segment->style->i_font_color = vlc_html_color( psz_color, NULL ); p_segment->style->i_features |= STYLE_HAS_FONT_COLOR; } + else if( psz_subtitle[1] == 'F' || psz_subtitle[1] == 'f' ) + { + p_segment = NewTextSegmentPushStyle( p_segment, &p_stack ); + p_segment->style->psz_fontname = strndup( &psz_subtitle[3], i_len ); + } // Hide other {x:y} atrocities, like {c:$bbggrr} or {P:x} psz_subtitle = psz_tag_end + 1; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
