[vlc-devel] [PATCH] Avoid type conversion errors when using VLC_TS_0

Rémi Denis-Courmont remi at remlab.net
Wed Nov 27 16:57:21 CET 2013


On Wed, 27 Nov 2013 10:02:34 -0500, Tristan Matthews
<le.businessman at gmail.com> wrote:
> Without the INT64_C, ES_OUT_SET_PCR was being called with garbage values
> (when not on 64-bit systems).
> Refs #9828
> ---
>  include/vlc_config.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/vlc_config.h b/include/vlc_config.h
> index c1cf96c..0bb37da 100644
> --- a/include/vlc_config.h
> +++ b/include/vlc_config.h
> @@ -41,7 +41,7 @@
>  /* 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_0 (INT64_C(1))

No need for outer parenthesis.

>  
>  #define CLOCK_FREQ INT64_C(1000000)

-- 
Rémi Denis-Courmont
Sent from my collocated server



More information about the vlc-devel mailing list