Skip to content

Commit

Permalink
fix(supermediaplayer): use sync video pts to detect pts revert
Browse files Browse the repository at this point in the history
Signed-off-by: pingkai <pingkai010@gmail.com>
  • Loading branch information
pingkai committed Apr 14, 2020
1 parent 4737c1a commit 627b11c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mediaPlayer/SuperMediaPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1965,8 +1965,8 @@ namespace Cicada {
int64_t videoPts = videoFrame->getInfo().pts;

// work around for huaweiP20 pro hardware decode get pts = INT64_MIN when change resolution.
if (videoPts == INT64_MIN && videoPts < mCurVideoPts) {
videoPts = mCurVideoPts + 1;
if (videoPts == INT64_MIN && videoPts < mPlayedVideoPts) {
videoPts = mPlayedVideoPts + 1;
}

int frameWidth = videoFrame->getInfo().video.width;
Expand Down

0 comments on commit 627b11c

Please sign in to comment.