Skip to content

Commit

Permalink
formatting with clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
쿤데라_오지우 committed Dec 13, 2023
1 parent 252739f commit bb70213
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions IsoLib/libisomediafile/src/MP4MovieFile.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,11 @@ ISOStartMovieFragment(MP4Movie theMovie)
moof = (MP4MovieFragmentAtomPtr)movie->moovAtomPtr;
mfhd = (MP4MovieFragmentHeaderAtomPtr)moof->mfhd;
fragment_sequence = mfhd->sequence_number + 1;
for (i=0; i<moof->atomList->entryCount; i++)
for(i = 0; i < moof->atomList->entryCount; i++)
{
err = MP4GetListEntry(moof->atomList, i, (char **)&traf);
if (err) goto bail;
traf->destroy((MP4AtomPtr)traf);
err = MP4GetListEntry(moof->atomList, i, (char **)&traf);
if(err) goto bail;
traf->destroy((MP4AtomPtr)traf);
}
moof->destroy(movie->moovAtomPtr); /* the old moof */
}
Expand Down
24 changes: 12 additions & 12 deletions IsoLib/libisomediafile/src/MP4Movies.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ MP4_EXTERN(MP4Err) MP4DisposeMovie(MP4Movie theMovie)

dh->close(dh);
}

if(moov->moovAtomPtr->type == MP4MovieFragmentAtomType)
{
MP4MovieFragmentAtomPtr moof;
Expand All @@ -85,22 +85,22 @@ MP4_EXTERN(MP4Err) MP4DisposeMovie(MP4Movie theMovie)
u32 trackTotalCount;

moof = (MP4MovieFragmentAtomPtr)moov->moovAtomPtr;
for (i = 0; i < moof->atomList->entryCount; i++)
for(i = 0; i < moof->atomList->entryCount; i++)
{
err = MP4GetListEntry(moof->atomList, i, (char **)&traf);
if (err) goto bail;
traf->destroy((MP4AtomPtr)traf);
err = MP4GetListEntry(moof->atomList, i, (char **)&traf);
if(err) goto bail;
traf->destroy((MP4AtomPtr)traf);
}

movieAtom = (MP4MovieAtomPtr)moov->true_moov;
movieAtom = (MP4MovieAtomPtr)moov->true_moov;
trackTotalCount = movieAtom->getTrackCount(movieAtom);
if (trackTotalCount != 0)
if(trackTotalCount != 0)
{
for (i = 1; i <= trackTotalCount; i++)
{
movieAtom->getTrackExtendsAtom(movieAtom, i, (MP4AtomPtr*)&trex);
trex->destroy((MP4AtomPtr)trex);
}
for(i = 1; i <= trackTotalCount; i++)
{
movieAtom->getTrackExtendsAtom(movieAtom, i, (MP4AtomPtr *)&trex);
trex->destroy((MP4AtomPtr)trex);
}
}
}

Expand Down

0 comments on commit bb70213

Please sign in to comment.