You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/mp4file.cpp
MP4ChapterType MP4File::GetChapters(MP4Chapter_t ** chapterList, uint32_t * chapterCount, MP4ChapterType fromChapterType)
{
...
const char * title = (const char *)&(sample[2]);
// collection of characters can be encoded in UTF-16
int titleLen = min((uint32_t)((sample[0] << 8) | sample[1]), (uint32_t)MP4V2_CHAPTER_TITLE_MAX);
// either byte in title may be zero
strncpy(chapters[i].title, title, titleLen);
chapters[i].title[titleLen] = 0;
...
}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: