From 3c937d653d14120229b3550687dbeb235bd2c6e6 Mon Sep 17 00:00:00 2001 From: Steinar Gunderson Date: Sat, 25 Sep 2010 00:25:58 +0200 Subject: [PATCH] Set i_dts, just to be nice. --- modules/access/sdi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/access/sdi.cpp b/modules/access/sdi.cpp index 4ae22c5488..4779749d87 100644 --- a/modules/access/sdi.cpp +++ b/modules/access/sdi.cpp @@ -164,7 +164,7 @@ HRESULT DeckLinkCaptureDelegate::VideoInputFrameArrived(IDeckLinkVideoInputFrame p_video_frame->i_flags |= BLOCK_FLAG_DISCONTINUITY; p_sys->b_first_frame = false; } - p_video_frame->i_pts = VLC_TS_0 + stream_time; + p_video_frame->i_pts = p_video_frame->i_dts = VLC_TS_0 + stream_time; } if( audioFrame ) @@ -184,7 +184,7 @@ HRESULT DeckLinkCaptureDelegate::VideoInputFrameArrived(IDeckLinkVideoInputFrame BMDTimeValue packet_time; audioFrame->GetPacketTime( &packet_time, CLOCK_FREQ ); - p_audio_frame->i_pts = VLC_TS_0 + packet_time; + p_audio_frame->i_pts = p_video_frame->i_dts = VLC_TS_0 + packet_time; } if( p_video_frame || p_audio_frame ) -- 2.39.2