]> git.sesse.net Git - vlc/commitdiff
Set i_pts to frame end instead of frame start, to avoid i_pts=0.
authorSteinar Gunderson <sgunderson@bigfoot.com>
Fri, 24 Sep 2010 00:17:22 +0000 (02:17 +0200)
committerSteinar Gunderson <sgunderson@bigfoot.com>
Fri, 24 Sep 2010 00:17:22 +0000 (02:17 +0200)
modules/access/sdi.cpp

index b326e7ee8fefd9fab6392aa46815ad0dc67719b5..201af4ac17f03b522f600251c7059c82aa6ea541 100644 (file)
@@ -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