Strip newlines at the end of the "Format=" line. Otherwise the fields wanted might not be found and would be missing in the output.

This commit is contained in:
Moritz Bunkus 2005-05-05 14:38:08 +00:00
parent b5c4d29c18
commit 8cca15fa07
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-05-05 Moritz Bunkus <moritz@bunkus.org>
* mkvextract: bug fix: SSA/ASS text was missing in the output if
the "Format=" line contained newlines at the end of the
CodecPrivate data (e.g. our old Mew Mew sample file).
2005-05-03 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: new feature: Added support for the ChapterSegmentUID

View File

@ -164,7 +164,7 @@ xtr_ssa_c::create_file(xtr_base_c *_master,
if (pos2 < 0)
pos2 = sconv.length();
ssa_format = split(sconv.substr(pos1 + 7, pos2 - pos1 - 7), ",");
strip(ssa_format);
strip(ssa_format, true);
for (pos1 = 0; pos1 < ssa_format.size(); pos1++)
ssa_format[pos1] = downcase(ssa_format[pos1]);