]> git.sesse.net Git - vlc/blobdiff - modules/access/sdi.cpp
Set i_dts, just to be nice.
[vlc] / modules / access / sdi.cpp
index 4ae22c5488f7b1a601fd42a8054d48a7cecda109..4779749d871cb5e16e99cc06a61055bf9785b901 100644 (file)
@@ -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 )