Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lin-1214 authored Mar 25, 2023
1 parent cb55198 commit ab86398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/software/src/player/OFPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ vector<OFStatus> OFPlayer::findFadeFrameStatus(const long &time) {
int OFPlayer::findFrameId(const long &time) {
const int totalFrame = frameList.size();
// printf("totalFrame :%d",totalFrame);
if (totalFrame == 0 || time <= 0) return -1;
if (totalFrame == 0 || time < 0) return -1;
if (time > frameList[frameList.size() - 1].start) return totalFrame - 1;
if (time >= frameList[frameId].start) {
if ((unsigned int)frameId < frameList.size() - 1) {
Expand Down

0 comments on commit ab86398

Please sign in to comment.