From: Steinar Gunderson Date: Fri, 24 Sep 2010 22:25:58 +0000 (+0200) Subject: Set i_dts, just to be nice. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=3c937d653d14120229b3550687dbeb235bd2c6e6;p=vlc Set i_dts, just to be nice. --- 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 )