Commit 57cd36b3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Jean-Baptiste Kempf

dshow: off by one

(cherry picked from commit 96095a84bf947d6be483cea56dd7c9539776ffba)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 531f8a29
...@@ -1893,7 +1893,7 @@ static int Demux( demux_t *p_demux ) ...@@ -1893,7 +1893,7 @@ static int Demux( demux_t *p_demux )
i_pts = sample.i_timestamp; i_pts = sample.i_timestamp;
p_stream->b_pts = true; 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 /= 10; /* 100-ns to µs conversion */
i_pts += VLC_TS_0; i_pts += VLC_TS_0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment