X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fmtime.h;h=017fc270fbac94dce585e9cf82336ca66c34cf8c;hb=418edc0d35fd428561a2019652ffc2f606baa7b0;hp=582941399477ccf7eac1d3cb71f79e5870e1c109;hpb=08997aa08c3f05c4fa2c1e0e803b93efdeda3ddf;p=vlc diff --git a/include/mtime.h b/include/mtime.h index 5829413994..017fc270fb 100644 --- a/include/mtime.h +++ b/include/mtime.h @@ -47,8 +47,13 @@ *****************************************************************************/ #define MSTRTIME_MAX_SIZE 22 +/* Well, Duh? But it does clue us in that we are converting from + millisecond quantity to a second quantity or vice versa. +*/ +#define MILLISECONDS_PER_SEC 1000 + #define msecstotimestr(psz_buffer, msecs) \ - secstotimestr( psz_buffer, (msecs / (int) 1000) ) + secstotimestr( psz_buffer, (msecs / (int) MILLISECONDS_PER_SEC) ) /***************************************************************************** * Prototypes