Skip to content

Commit

Permalink
fix the 1st frame timestamp. step backward at beginning should work
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Jun 14, 2018
1 parent bead281 commit 34afa14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VideoThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ void VideoThread::run()
continue;
}
pkt_data = pkt.data.constData();
if (frame.timestamp() <= 0)
if (frame.timestamp() < 0)
frame.setTimestamp(pkt.pts); // pkt.pts is wrong. >= real timestamp
const qreal pts = frame.timestamp();
d.pts_history.push_back(pts);
Expand Down

0 comments on commit 34afa14

Please sign in to comment.