Fix signed/unsigned mismatch in FFMAX (#392)
This commit is contained in:
parent
0076a071f1
commit
542c1c7085
@ -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;
|
||||
|
@ -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) {}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user