Advance the buffer position if an ID3 tag is found. Otherwise the function would be stuck in an endless loop.

This commit is contained in:
Moritz Bunkus 2004-07-26 10:57:11 +00:00
parent 8c00f6b568
commit 71d153f81d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-07-26 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: bug fix: The word 'TAG' occuring in e.g. SRT subs
caused the ID3/MP3 frame detection to be stuck n an endless loop.
2004-07-25 Moritz Bunkus <moritz@bunkus.org> 2004-07-25 Moritz Bunkus <moritz@bunkus.org>
* Released v0.9.4. * Released v0.9.4.

View File

@ -282,7 +282,7 @@ find_consecutive_mp3_headers(const unsigned char *buf,
break; break;
mxverb(2, "mp3_reader: Found tag at %d size %d\n", base + pos, mxverb(2, "mp3_reader: Found tag at %d size %d\n", base + pos,
mp3header.framesize); mp3header.framesize);
base = pos + 1; base += pos + 1;
} while (true); } while (true);
if (num == 1) if (num == 1)