mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-23 19:31:44 +00:00
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:
parent
9f0673c869
commit
9958ee9e51
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user