vlc | branch: master | Francois Cartegnie <[email protected]> | Fri Sep 7 11:43:19 2018 +0200| [2d82539e5fd7a1db127ed30a12dd8039246833da] | committer: Francois Cartegnie
demux: ts: check defined reference fail if invalid reference changes > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2d82539e5fd7a1db127ed30a12dd8039246833da --- modules/demux/mpeg/ts.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/demux/mpeg/ts.h b/modules/demux/mpeg/ts.h index b12a7dac51..24ed821bd0 100644 --- a/modules/demux/mpeg/ts.h +++ b/modules/demux/mpeg/ts.h @@ -28,7 +28,12 @@ typedef struct csa_t csa_t; #define TS_USER_PMT_NUMBER (0) #define TS_PSI_PAT_PID 0x00 -#define TS_TICK_UNKNOWN -1 + +#if (VLC_TICK_INVALID + 1 != VLC_TICK_0) +# error "can't define TS_UNKNOWN reference" +#else +# define TS_TICK_UNKNOWN (VLC_TICK_INVALID - 1) +#endif #define SETANDVALID(a) (a != TS_TICK_UNKNOWN && a != VLC_TICK_INVALID) typedef enum ts_standards_e _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
