diff --git a/src/media.cpp b/src/media.cpp index 2b43703fe..29b0fc02f 100644 --- a/src/media.cpp +++ b/src/media.cpp @@ -605,6 +605,7 @@ void FeVideoImp::video_thread() int64_t prev_duration = 0; sf::Time wait_time; + sf::Time half_frame_offset = sf::milliseconds( 8 ); if ((!sws_ctx) || (!rgba_buffer[0])) { @@ -637,7 +638,7 @@ void FeVideoImp::video_thread() wait_time = sf::seconds( detached_frame->pts * av_q2d( m_parent->m_imp->m_format_ctx->streams[stream_id]->time_base )) - - m_parent->get_video_time(); + - m_parent->get_video_time() + half_frame_offset; if ( wait_time < max_sleep ) {