Opened 4 years ago
Last modified 17 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 |
Description
libavcodec/htmlsubtitles.c
has a parser for <html>
tags using angled brackets, but it ignores HTML escapes like <
and &
. This means there's no way to put an HTML tag in a subtitle format like SubRip, because <
is passed as is, and <tags>
are not passed if they are not recognized.
For context WebVTT's parser does support <
(in compliance with spec), but SubRip cannot because there's no way to escape a <
using the current decoder/parser.
Note:
See TracTickets
for help on using tickets.