Opened 3 years ago

Last modified 11 months ago

#9058 new defect

lavc/htmlsubtitles.c does not parse HTML ampersand escapes

Reported by: Leo Izen Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: htmlsubtitles, subrip, srt, srtdec
Cc: Ashark Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


libavcodec/htmlsubtitles.c has a parser for <html> tags using angled brackets, but it ignores HTML escapes like &lt; and &amp;. This means there's no way to put an HTML tag in a subtitle format like SubRip, because &lt; is passed as is, and <tags> are not passed if they are not recognized.

For context WebVTT's parser does support &lt; (in compliance with spec), but SubRip cannot because there's no way to escape a < using the current decoder/parser.

Change History (1)

comment:1 by Ashark, 11 months ago

Cc: Ashark added
Note: See TracTickets for help on using tickets.