]> git.sesse.net Git - vlc/commitdiff
Do a more proper fix (with symbolic constants) for i_pts.
authorSteinar Gunderson <sgunderson@bigfoot.com>
Fri, 24 Sep 2010 16:07:18 +0000 (18:07 +0200)
committerSteinar Gunderson <sgunderson@bigfoot.com>
Fri, 24 Sep 2010 16:07:18 +0000 (18:07 +0200)
modules/access/sdi.cpp

index 201af4ac17f03b522f600251c7059c82aa6ea541..d31ed17068556997845b721ab6d2607d0e344269 100644 (file)
@@ -107,8 +107,8 @@ HRESULT DeckLinkCaptureDelegate::VideoInputFrameArrived(IDeckLinkVideoInputFrame
         memcpy( p_frame->p_buffer, frame_bytes, 720 * 576 * 3 );
 
         BMDTimeValue stream_time, frame_duration;
-        videoFrame->GetStreamTime( &stream_time, &frame_duration, 1000000 );
-        p_frame->i_pts = stream_time + frame_duration;  // FIXME: hack to avoid i_pts=0?
+        videoFrame->GetStreamTime( &stream_time, &frame_duration, CLOCK_FREQ );
+        p_frame->i_pts = VLC_TS_0 + stream_time;
 
         vlc_mutex_lock( &p_sys->frame_lock );
         p_sys->p_frame = p_frame;  // FIXME: leak