[vlc-devel] [PATCH] Avoid type conversion errors with VLC_TS_*

Tristan Matthews le.businessman at gmail.com
Wed Nov 27 19:02:09 CET 2013


On Wed, Nov 27, 2013 at 12:01 PM, Rafaël Carré <rafael.carre at gmail.com> wrote:
> Patch OK, thanks.
>
> Btw do you have commit access?

I do not.

> If not you should get one

Sure if you think so.

Best,
Tristan

> Tristan Matthews <le.businessman at gmail.com> a écrit :
>>
>> From: Tristan Matthews <le.businessman at gmail.com>
>>
>> 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 | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/include/vlc_config.h b/include/vlc_config.h
>> index c1cf96c..50b4887 100644
>> --- a/include/vlc_config.h
>> +++ b/include/vlc_config.h
>> @@ -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)
>
>
> --
> Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
>



-- 
Tristan Matthews
web: http://tristanswork.blogspot.com



More information about the vlc-devel mailing list