Bug 1116883 - Allow segment type box at the beginning of a media segment per spec. r=karlt

This commit is contained in:
Bobby Holley 2015-01-07 15:58:55 -08:00
parent 51a79e4d6d
commit 451da32452

View File

@ -237,8 +237,8 @@ public:
return false;
}
return aData[4] == 'm' && aData[5] == 'o' && aData[6] == 'o' &&
aData[7] == 'f';
return (aData[4] == 'm' && aData[5] == 'o' && aData[6] == 'o' && aData[7] == 'f') ||
(aData[4] == 's' && aData[5] == 't' && aData[6] == 'y' && aData[7] == 'p');
}
bool ParseStartAndEndTimestamps(const uint8_t* aData, uint32_t aLength,