mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-07 18:53:24 +00:00
Avoid access to uninitialized memory and mis-detection of DTS as a result.
This commit is contained in:
parent
b25973076b
commit
0da9e55e63
@ -453,8 +453,9 @@ detect_dts(const void *src_buf,
|
|||||||
cur_buf ^= 1;
|
cur_buf ^= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (find_dts_header((const unsigned char *)buf[cur_buf], len,
|
int dst_buf_len = dts_14_16 ? (len * 7 / 8) : len;
|
||||||
&dtsheader) >= 0) {
|
|
||||||
|
if (find_dts_header((const unsigned char *)buf[cur_buf], dst_buf_len, &dtsheader) >= 0) {
|
||||||
is_dts = true;
|
is_dts = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user