From 6641895c3641e792de6f16a9967bc2becfb513a4 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Sun, 8 Apr 2018 20:13:57 +0200 Subject: dshow: convert sample_time to timestamp --- modules/dshow/dshow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/dshow/dshow.cpp b/modules/dshow/dshow.cpp index d081f69..46aef3e 100644 --- a/modules/dshow/dshow.cpp +++ b/modules/dshow/dshow.cpp @@ -99,12 +99,13 @@ public: STDMETHOD(BufferCB) (double sample_time, BYTE *buf, long buf_len) { struct vidframe vidframe; + uint64_t timestamp = sample_time * VIDEO_TIMEBASE; /* XXX: should be VID_FMT_BGR24 */ vidframe_init_buf(&vidframe, VID_FMT_RGB32, &src->size, buf); if (src->frameh) - src->frameh(&vidframe, src->arg); + src->frameh(&vidframe, timestamp, src->arg); return S_OK; } -- cgit v1.2.3