Skip to content

Commit

Permalink
Avoid type conversion errors with VLC_TS_*
Browse files Browse the repository at this point in the history
Without the INT64_C, ES_OUT_SET_PCR was being called with garbage values
(when not on 64-bit systems).
Refs #9828
  • Loading branch information
tmatth committed Nov 29, 2013
1 parent 952646b commit 7659b4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/vlc_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@

/* All timestamp below or equal to this define are invalid/unset
* XXX the numerical value is 0 because of historical reason and will change.*/
#define VLC_TS_INVALID (0)
#define VLC_TS_0 (1)
#define VLC_TS_INVALID INT64_C(0)
#define VLC_TS_0 INT64_C(1)

#define CLOCK_FREQ INT64_C(1000000)

Expand Down

0 comments on commit 7659b4d

Please sign in to comment.