зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1156505 - p2: Null-check sampleTable before use - r=rillian
--HG-- extra : rebase_source : 9bacf9a568f1020ba19957cba06f3792b4e7c325
This commit is contained in:
Родитель
9e0bca97d2
Коммит
ffc47660b8
|
@ -1479,7 +1479,7 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
|
|||
case FOURCC('s', 't', 'c', 'o'):
|
||||
case FOURCC('c', 'o', '6', '4'):
|
||||
{
|
||||
if (!mLastTrack) {
|
||||
if (!mLastTrack || !mLastTrack->sampleTable.get()) {
|
||||
return ERROR_MALFORMED;
|
||||
}
|
||||
status_t err =
|
||||
|
@ -1496,7 +1496,7 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
|
|||
|
||||
case FOURCC('s', 't', 's', 'c'):
|
||||
{
|
||||
if (!mLastTrack) {
|
||||
if (!mLastTrack || !mLastTrack->sampleTable.get()) {
|
||||
return ERROR_MALFORMED;
|
||||
}
|
||||
status_t err =
|
||||
|
@ -1514,7 +1514,7 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
|
|||
case FOURCC('s', 't', 's', 'z'):
|
||||
case FOURCC('s', 't', 'z', '2'):
|
||||
{
|
||||
if (!mLastTrack) {
|
||||
if (!mLastTrack || !mLastTrack->sampleTable.get()) {
|
||||
return ERROR_MALFORMED;
|
||||
}
|
||||
status_t err =
|
||||
|
@ -1571,7 +1571,7 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
|
|||
|
||||
case FOURCC('s', 't', 't', 's'):
|
||||
{
|
||||
if (!mLastTrack) {
|
||||
if (!mLastTrack || !mLastTrack->sampleTable.get()) {
|
||||
return ERROR_MALFORMED;
|
||||
}
|
||||
status_t err =
|
||||
|
@ -1588,7 +1588,7 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
|
|||
|
||||
case FOURCC('c', 't', 't', 's'):
|
||||
{
|
||||
if (!mLastTrack) {
|
||||
if (!mLastTrack || !mLastTrack->sampleTable.get()) {
|
||||
return ERROR_MALFORMED;
|
||||
}
|
||||
status_t err =
|
||||
|
@ -1605,7 +1605,7 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
|
|||
|
||||
case FOURCC('s', 't', 's', 's'):
|
||||
{
|
||||
if (!mLastTrack) {
|
||||
if (!mLastTrack || !mLastTrack->sampleTable.get()) {
|
||||
return ERROR_MALFORMED;
|
||||
}
|
||||
status_t err =
|
||||
|
@ -1622,7 +1622,7 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
|
|||
|
||||
case FOURCC('s', 'a', 'i', 'z'):
|
||||
{
|
||||
if (!mLastTrack) {
|
||||
if (!mLastTrack || !mLastTrack->sampleTable.get()) {
|
||||
return ERROR_MALFORMED;
|
||||
}
|
||||
status_t err =
|
||||
|
@ -1639,7 +1639,7 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
|
|||
|
||||
case FOURCC('s', 'a', 'i', 'o'):
|
||||
{
|
||||
if (!mLastTrack) {
|
||||
if (!mLastTrack || !mLastTrack->sampleTable.get()) {
|
||||
return ERROR_MALFORMED;
|
||||
}
|
||||
status_t err =
|
||||
|
@ -4250,7 +4250,7 @@ public:
|
|||
nsTArray<MediaSource::Indice> MPEG4Source::exportIndex()
|
||||
{
|
||||
nsTArray<MediaSource::Indice> index;
|
||||
if (!mTimescale) {
|
||||
if (!mTimescale || !mSampleTable.get()) {
|
||||
return index;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче