Enabled more warnings, switched the deployment target to 10.7 and minor code cleanup
This commit is contained in:
1 parent
efc0e794c0
commit
e5095a611a
33 files changed
+167
-258
No files matched your search
@@ -686,17 +686,18 @@ MP4Duration getTrackDuration(MP4FileHandle fileHandle, MP4TrackId trackId)
|
||||
{
|
||||
uint32_t trackEditsCount = MP4GetTrackNumberOfEdits(fileHandle, trackId);
|
||||
MP4Duration duration = 0;
|
||||
int i = 1;
|
||||
uint32_t i = 1;
|
||||
|
||||
while( i <= trackEditsCount) {
|
||||
while (i <= trackEditsCount) {
|
||||
duration += MP4GetTrackEditDuration(fileHandle, trackId, i);
|
||||
i++;
|
||||
}
|
||||
|
||||
if (duration == 0)
|
||||
if (duration == 0) {
|
||||
duration = MP4ConvertFromTrackDuration(fileHandle, trackId,
|
||||
MP4GetTrackDuration(fileHandle, trackId),
|
||||
MP4GetTimeScale(fileHandle));
|
||||
}
|
||||
|
||||
return duration;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user