[vlc-commits] dshow: off by one

Rémi Denis-Courmont git at videolan.org
Mon Jul 7 18:31:06 CEST 2014


vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul  7 18:38:36 2014 +0300| [57cd36b30fb2862cd1e71ad2df3a5b6e75068caa] | committer: Jean-Baptiste Kempf

dshow: off by one

(cherry picked from commit 96095a84bf947d6be483cea56dd7c9539776ffba)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=57cd36b30fb2862cd1e71ad2df3a5b6e75068caa
---

 modules/access/dshow/dshow.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/dshow/dshow.cpp b/modules/access/dshow/dshow.cpp
index eeac589..0e21fe4 100644
--- a/modules/access/dshow/dshow.cpp
+++ b/modules/access/dshow/dshow.cpp
@@ -1893,7 +1893,7 @@ static int Demux( demux_t *p_demux )
                     i_pts = sample.i_timestamp;
                     p_stream->b_pts = true;
                 }
-                i_pts += (i_pts >= 0) ? +5 : -5;
+                i_pts += (i_pts >= 0) ? +5 : -4;
                 i_pts /= 10; /* 100-ns to µs conversion */
                 i_pts += VLC_TS_0;
             }



More information about the vlc-commits mailing list