mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Skip empty lines at the beginning of SRT files
This commit is contained in:
parent
55cb667876
commit
a2ace0d1b3
@ -1,3 +1,8 @@
|
|||||||
|
2010-03-03 Moritz Bunkus <moritz@bunkus.org>
|
||||||
|
|
||||||
|
* mkvmerge: bug fix: The SRT reader skips empty lines at the
|
||||||
|
beginning of the file.
|
||||||
|
|
||||||
2010-03-02 Moritz Bunkus <moritz@bunkus.org>
|
2010-03-02 Moritz Bunkus <moritz@bunkus.org>
|
||||||
|
|
||||||
* Build system: bug fix: Fixed the configure script and compilation
|
* Build system: bug fix: Fixed the configure script and compilation
|
||||||
|
@ -44,8 +44,11 @@ bool
|
|||||||
srt_parser_c::probe(mm_text_io_c *io) {
|
srt_parser_c::probe(mm_text_io_c *io) {
|
||||||
try {
|
try {
|
||||||
io->setFilePointer(0, seek_beginning);
|
io->setFilePointer(0, seek_beginning);
|
||||||
std::string s = io->getline();
|
std::string s;
|
||||||
|
do {
|
||||||
|
s = io->getline();
|
||||||
strip(s);
|
strip(s);
|
||||||
|
} while (s.empty());
|
||||||
|
|
||||||
int64_t dummy;
|
int64_t dummy;
|
||||||
if (!parse_int(s, dummy))
|
if (!parse_int(s, dummy))
|
||||||
|
Loading…
Reference in New Issue
Block a user