From 747e352af447e8693524965c81581e5145be85f2 Mon Sep 17 00:00:00 2001 From: Steinar Gunderson Date: Fri, 24 Sep 2010 02:17:22 +0200 Subject: [PATCH] Set i_pts to frame end instead of frame start, to avoid i_pts=0. --- modules/access/sdi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/access/sdi.cpp b/modules/access/sdi.cpp index b326e7ee8f..201af4ac17 100644 --- a/modules/access/sdi.cpp +++ b/modules/access/sdi.cpp @@ -108,7 +108,7 @@ HRESULT DeckLinkCaptureDelegate::VideoInputFrameArrived(IDeckLinkVideoInputFrame BMDTimeValue stream_time, frame_duration; videoFrame->GetStreamTime( &stream_time, &frame_duration, 1000000 ); - p_frame->i_pts = stream_time; + p_frame->i_pts = stream_time + frame_duration; // FIXME: hack to avoid i_pts=0? vlc_mutex_lock( &p_sys->frame_lock ); p_sys->p_frame = p_frame; // FIXME: leak -- 2.39.2