[FFmpeg-devel] Matroska subtitle decoding: CODEC_ID_TEXT vs. CODEC_ID_SRT
Martin Lambers
marlam at marlam.de
Sun Apr 24 14:54:09 CEST 2011
Hi all,
According to this site
<http://matroska.org/technical/specs/codecid/index.html>, "S_TEXT/UTF8"
are SRT subtitles. Yet in libavformat/matroska.c, there are two entries
for "S_TEXT/UTF8":
...
{"S_TEXT/UTF8" , CODEC_ID_TEXT},
{"S_TEXT/UTF8" , CODEC_ID_SRT},
...
This has the result that SRT subtitles are handled with CODEC_ID_TEXT
during decoding since this is the first entry found. Therefore, they do
not get translated to ASS as would happen with SRT subtitles from other
sources.
Is there a reason to keep this behaviour? Can the first entry be removed?
Best regards,
Martin
More information about the ffmpeg-devel
mailing list