Skip to content

Commit

Permalink
fix(supermediaplayer): fix pos jump when accurate seek
Browse files Browse the repository at this point in the history
Signed-off-by: pingkai <pingkai010@gmail.com>
  • Loading branch information
pingkai authored and I-m-SuperMan committed Aug 26, 2020
1 parent b664e13 commit a991eb3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mediaPlayer/SuperMediaPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2573,7 +2573,11 @@ int SuperMediaPlayer::ReadPacket()
}

if (mSoughtVideoPos == INT64_MIN) {
mSoughtVideoPos = pFrame->getInfo().timePosition;
if (mSeekNeedCatch) {
mSoughtVideoPos = mSeekPos;
} else {
mSoughtVideoPos = pFrame->getInfo().timePosition;
}

/*
* seek would clean the packet which have ExtraData in decoder queue,
Expand Down

0 comments on commit a991eb3

Please sign in to comment.