From: Steinar Gunderson Date: Fri, 24 Sep 2010 00:17:22 +0000 (+0200) Subject: Set i_pts to frame end instead of frame start, to avoid i_pts=0. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=747e352af447e8693524965c81581e5145be85f2;p=vlc Set i_pts to frame end instead of frame start, to avoid i_pts=0. --- 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