[vlc-commits] ts: replace hardcoded CLOCK_FREQ multiples by VLC_TICK_FROM_SEC()
Steve Lhomme
git at videolan.org
Fri Jul 6 16:07:33 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jun 15 07:10:12 2018 +0200| [ee34d893d3a08b7a9d0aefeb433e60d35aa8caf5] | committer: Steve Lhomme
ts: replace hardcoded CLOCK_FREQ multiples by VLC_TICK_FROM_SEC()
Easier to read and more explicit.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ee34d893d3a08b7a9d0aefeb433e60d35aa8caf5
---
modules/demux/mpeg/ts_hotfixes.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/mpeg/ts_hotfixes.h b/modules/demux/mpeg/ts_hotfixes.h
index 25faf05b1f..b9ccb9d913 100644
--- a/modules/demux/mpeg/ts_hotfixes.h
+++ b/modules/demux/mpeg/ts_hotfixes.h
@@ -19,7 +19,7 @@
#ifndef VLC_TS_HOTFIXES_H
#define VLC_TS_HOTFIXES_H
-#define MIN_PAT_INTERVAL CLOCK_FREQ // DVB is 500ms
+#define MIN_PAT_INTERVAL VLC_TICK_FROM_SEC(1) // DVB is 500ms
void ProbePES( demux_t *p_demux, ts_pid_t *pid, const uint8_t *p_pesstart, size_t i_data, bool b_adaptfield );
void MissingPATPMTFixup( demux_t *p_demux );
More information about the vlc-commits
mailing list