diff --git a/ChangeLog b/ChangeLog index 6c3111ecc..6abd1b859 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-03-14 Moritz Bunkus + + * mkvmerge: bug fix: AC3 detection was broken in rare cases. + 2005-03-13 Moritz Bunkus * mmg: bug fix: If the TEMP environment variable contains spaces diff --git a/src/common/ac3_common.cpp b/src/common/ac3_common.cpp index e0fdb6ab0..e6acd3444 100644 --- a/src/common/ac3_common.cpp +++ b/src/common/ac3_common.cpp @@ -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;