Skip to content

Commit

Permalink
RIO-9162: Fix for proper handling of MP4 clips with invalid edit list…
Browse files Browse the repository at this point in the history
… atoms

Change-Id: I57fbab8e2751f8eb4cf627992e490c5f8b01a962
  • Loading branch information
PacketVideo CM committed Jun 23, 2010
1 parent 2136fdd commit d4da202
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions engines/2way/src/pv_2way_sdkinfo.h
Expand Up @@ -21,7 +21,7 @@
// This header file is automatically generated at build-time
// *** OFFICIAL RELEASE INFO -- Will not auto update

#define PV2WAY_ENGINE_SDKINFO_LABEL "1503207"
#define PV2WAY_ENGINE_SDKINFO_DATE 0x20100617
#define PV2WAY_ENGINE_SDKINFO_LABEL "1503703"
#define PV2WAY_ENGINE_SDKINFO_DATE 0x20100618

#endif //PV_2WAY_SDKINFO_H_INCLUDED
4 changes: 2 additions & 2 deletions engines/author/src/pv_author_sdkinfo.h
Expand Up @@ -21,7 +21,7 @@
// This header file is automatically generated at build-time
// *** OFFICIAL RELEASE INFO -- Will not auto update

#define PVAUTHOR_ENGINE_SDKINFO_LABEL "1503207"
#define PVAUTHOR_ENGINE_SDKINFO_DATE 0x20100617
#define PVAUTHOR_ENGINE_SDKINFO_LABEL "1503703"
#define PVAUTHOR_ENGINE_SDKINFO_DATE 0x20100618

#endif //PV_AUTHOR_SDKINFO_H_INCLUDED
4 changes: 2 additions & 2 deletions engines/player/src/pv_player_sdkinfo.h
Expand Up @@ -21,7 +21,7 @@
// This header file is automatically generated at build-time
// *** OFFICIAL RELEASE INFO -- Will not auto update

#define PVPLAYER_ENGINE_SDKINFO_LABEL "1503207"
#define PVPLAYER_ENGINE_SDKINFO_DATE 0x20100617
#define PVPLAYER_ENGINE_SDKINFO_LABEL "1503703"
#define PVPLAYER_ENGINE_SDKINFO_DATE 0x20100618

#endif //PV_PLAYER_SDKINFO_H_INCLUDED
7 changes: 4 additions & 3 deletions fileformats/mp4/parser/src/editatom.cpp
Expand Up @@ -61,9 +61,10 @@ EditAtom::EditAtom(MP4_FF_FILE *fp, uint32 size, uint32 type)
}
else
{
_success = false;
_mp4ErrorCode = READ_UNKNOWN_ATOM;
break;
dataLength -= atomSize;
atomSize -= DEFAULT_ATOM_SIZE;
AtomUtils::seekFromCurrPos(fp, atomSize);

}

}
Expand Down
2 changes: 1 addition & 1 deletion fileformats/mp4/parser/src/sampletableatom.cpp
Expand Up @@ -3578,7 +3578,7 @@ void SampleTableAtom::handleEditList(uint64 &ts)
if ((_pEditListTimeVec == NULL) || (_pEditListDurationVec == NULL))
return;

if ((ts < _prevEditDuration) || (_editIndex > _pEditListTimeVec->size()))
if ((ts < _prevEditDuration) || (_editIndex >= _pEditListTimeVec->size()))
return;

if ((*_pEditListTimeVec)[_editIndex] == -1)
Expand Down

0 comments on commit d4da202

Please sign in to comment.