Skip to content

Commit 34afa14

Browse files
committed
fix the 1st frame timestamp. step backward at beginning should work
1 parent bead281 commit 34afa14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VideoThread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ void VideoThread::run()
523523
continue;
524524
}
525525
pkt_data = pkt.data.constData();
526-
if (frame.timestamp() <= 0)
526+
if (frame.timestamp() < 0)
527527
frame.setTimestamp(pkt.pts); // pkt.pts is wrong. >= real timestamp
528528
const qreal pts = frame.timestamp();
529529
d.pts_history.push_back(pts);

0 commit comments

Comments
 (0)