Fix findChapterPreviewTrackId

This commit is contained in:
Damiano Galassi committed 2017-09-01 09:09:17 +02:00
1 parent fc6b9d8a4c
commit c9a13f3b1d
2 files changed
+2 -9

No files matched your search

+1 -1
View File
@@ -120,7 +120,7 @@ MP4TrackId findChapterPreviewTrackId(MP4FileHandle fileHandle)
if (MP4HaveTrackAtom(fileHandle, trackId, "tref.chap")) {
uint64_t entryCount = 0;
MP4GetTrackIntegerProperty(fileHandle, trackId, "tref.chap.entryCount", &entryCount);
if (entryCount > 1 && MP4GetTrackIntegerProperty(fileHandle, trackId, "tref.chap.entries.trackId[1]", &trackRef))
if (entryCount > 1 && MP4GetTrackIntegerProperty(fileHandle, trackId, "tref.chap.entries[1].trackId", &trackRef))
if (trackRef > 0)
return (MP4TrackId) trackRef;
}