mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-04 09:15:05 +00:00
Fix two more possible cases of accidentally converting a signed to an unsigned integer.
This commit is contained in:
parent
ff7a5f910e
commit
4ea61ef6f2
@ -399,7 +399,7 @@ get_chapter_start(KaxChapterAtom &atom,
|
||||
int64_t value_if_not_found) {
|
||||
KaxChapterTimeStart *start = FINDFIRST(&atom, KaxChapterTimeStart);
|
||||
|
||||
return NULL == start ? value_if_not_found : uint64(*start);
|
||||
return NULL == start ? value_if_not_found : int64_t(uint64(*start));
|
||||
}
|
||||
|
||||
/** \brief Get the end timecode for a chapter atom.
|
||||
@ -418,7 +418,7 @@ get_chapter_end(KaxChapterAtom &atom,
|
||||
int64_t value_if_not_found) {
|
||||
KaxChapterTimeEnd *end = FINDFIRST(&atom, KaxChapterTimeEnd);
|
||||
|
||||
return NULL == end ? value_if_not_found : uint64(*end);
|
||||
return NULL == end ? value_if_not_found : int64_t(uint64(*end));
|
||||
}
|
||||
|
||||
/** \brief Get the name for a chapter atom.
|
||||
|
Loading…
Reference in New Issue
Block a user