mkvparser: Segment::Load fail w/missing info/tracks

convert asserts to error returns

BUG=23430793

Change-Id: Ifbfb5a2e7cd41344acc9c8d7afdf183b28dc2cd2
This commit is contained in:
James Zern 2015-08-22 10:46:09 -07:00
parent 08fb6546e8
commit 21ee398281

View File

@ -1391,8 +1391,8 @@ long Segment::Load() {
if (header_status > 0) // underflow
return E_BUFFER_NOT_FULL;
assert(m_pInfo);
assert(m_pTracks);
if (m_pInfo == NULL || m_pTracks == NULL)
return E_FILE_FORMAT_INVALID;
for (;;) {
const int status = LoadCluster();