[FFmpeg-trac] #9058(avcodec:new): lavc/htmlsubtitles.c does not parse HTML ampersand escapes
FFmpeg
trac at avcodec.org
Wed Jan 6 17:37:30 EET 2021
#9058: lavc/htmlsubtitles.c does not parse HTML ampersand escapes
-------------------------------------+-------------------------------------
Reporter: thebombzen | Type: defect
Status: new | Priority: normal
Component: avcodec | Version: git-
Keywords: | master
htmlsubtitles,subrip,srt,srtdec | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
`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.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9058>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list