Do not skip one byte to many after each AC3 header. Otherwise detection of consecutive headers fails, and the file might be mis-detected as something else.

This commit is contained in:
Moritz Bunkus 2005-03-14 13:16:25 +00:00
parent 9f0673c869
commit 9958ee9e51
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-03-14 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: bug fix: AC3 detection was broken in rare cases.
2005-03-13 Moritz Bunkus <moritz@bunkus.org>
* mmg: bug fix: If the TEMP environment variable contains spaces

View File

@ -124,11 +124,11 @@ find_consecutive_ac3_headers(const unsigned char *buf,
if (pos < 0)
return -1;
mxverb(2, "ac3_reader: Found tag at %d size %d\n", pos, ac3header.bytes);
base = pos + 1;
if (num == 1)
return pos;
base = pos;
do {
mxverb(2, "find_cons_ac3_h: starting with base at %d\n", base);
offset = ac3header.bytes;