PR #23097 opened by seichert
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23097
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23097.patch

According to Chapter 3, Paragraph 2 of the "SI Brochure - 9th ed./version 3.02":

> Prefix symbols are printed in upright typeface, as are unit symbols,
> regardless of the typeface used in the surrounding text and are
> attached to unit symbols without a space between the prefix symbol
> and the unit symbol.

https://www.bipm.org/documents/20126/41483022/SI-Brochure-9-EN.pdf


>From 65d85a54eafc1ced1b1c021e78f6d36539015efe Mon Sep 17 00:00:00 2001
From: Stuart Eichert <[email protected]>
Date: Wed, 13 May 2026 20:53:41 -0700
Subject: [PATCH] Typo: Remove space in 'microseconds'.

According to Chapter 3, Paragraph 2 of the "SI Brochure - 9th ed./version 3.02":

> Prefix symbols are printed in upright typeface, as are unit symbols,
> regardless of the typeface used in the surrounding text and are
> attached to unit symbols without a space between the prefix symbol
> and the unit symbol.

https://www.bipm.org/documents/20126/41483022/SI-Brochure-9-EN.pdf
---
 doc/developer.texi     | 2 +-
 libavfilter/setpts.c   | 4 ++--
 libavformat/internal.h | 6 +++---
 libavformat/utils.c    | 2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/doc/developer.texi b/doc/developer.texi
index fe08fb7fbd..a9956aba14 100644
--- a/doc/developer.texi
+++ b/doc/developer.texi
@@ -387,7 +387,7 @@ symbols. If in doubt, just avoid names starting with 
@code{_} altogether.
 Casts should be used only when necessary. Unneeded parentheses
 should also be avoided if they don't make the code easier to understand.
 @item
-Where applicable, SI units shall be used. For example timeouts should use 
seconds as the fundamental unit not micro seconds.
+Where applicable, SI units shall be used. For example timeouts should use 
seconds as the fundamental unit not microseconds.
 That means a bare value like @samp{1.0} must mean 1 second, @samp{50m} means 
50 milliseconds. For weight, gram shall be used.
 @end itemize
 
diff --git a/libavfilter/setpts.c b/libavfilter/setpts.c
index b49a0cb64f..12ace0d43b 100644
--- a/libavfilter/setpts.c
+++ b/libavfilter/setpts.c
@@ -54,8 +54,8 @@ static const char *const var_names[] = {
     "STARTT",      ///< time at start of movie
     "T",           ///< original time in the file of the frame
     "TB",          ///< timebase
-    "RTCTIME",     ///< wallclock (RTC) time in micro seconds
-    "RTCSTART",    ///< wallclock (RTC) time at the start of the movie in 
micro seconds
+    "RTCTIME",     ///< wallclock (RTC) time in microseconds
+    "RTCSTART",    ///< wallclock (RTC) time at the start of the movie in 
microseconds
     "S",           //   Number of samples in the current frame
     "SR",          //   Audio sample rate
     "FR",          ///< defined only for constant frame-rate video
diff --git a/libavformat/internal.h b/libavformat/internal.h
index b3a0a0c2d5..38afeb796f 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -424,16 +424,16 @@ uint64_t ff_ntp_time(void);
 /**
  * Get the NTP time stamp formatted as per the RFC-5905.
  *
- * @param ntp_time NTP time in micro seconds (since NTP epoch)
+ * @param ntp_time NTP time in microseconds (since NTP epoch)
  * @return the formatted NTP time stamp
  */
 uint64_t ff_get_formatted_ntp_time(uint64_t ntp_time_us);
 
 /**
- * Parse the NTP time in micro seconds (since NTP epoch).
+ * Parse the NTP time in microseconds (since NTP epoch).
  *
  * @param ntp_ts NTP time stamp formatted as per the RFC-5905.
- * @return the time in micro seconds (since NTP epoch)
+ * @return the time in microseconds (since NTP epoch)
  */
 uint64_t ff_parse_ntp_time(uint64_t ntp_ts);
 
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 0192dba97f..b9f2f1bdab 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -264,7 +264,7 @@ uint64_t ff_get_formatted_ntp_time(uint64_t ntp_time_us)
     uint64_t ntp_ts, frac_part, sec;
     uint32_t usec;
 
-    //current ntp time in seconds and micro seconds
+    //current ntp time in seconds and microseconds
     sec = ntp_time_us / 1000000;
     usec = ntp_time_us % 1000000;
 
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to