Fix signed/unsigned mismatch in FFMAX (#392)

This commit is contained in:
jcdr428 2021-01-22 16:13:39 +02:00 committed by GitHub
parent 0076a071f1
commit 542c1c7085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -2269,7 +2269,7 @@ int MPLSParser::calcPlayItemID(MPLSStreamInfo& streamInfo, uint32_t pts)
if (streamInfo.m_index[i].size() > 0)
{
if (streamInfo.m_index[i].begin()->first > pts)
return FFMAX(i - 1, 0);
return FFMAX(i, 1) - 1;
}
}
return streamInfo.m_index.size() - 1;

View File

@ -483,7 +483,7 @@ struct MPLSPlayItem
struct PlayListMark
{
unsigned m_playItemID;
int m_playItemID;
uint32_t m_markTime;
PlayListMark(int playItemID, uint32_t markTime) : m_playItemID(playItemID), m_markTime(markTime) {}
};