diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-28 19:47:50 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-02 02:51:10 +0100 |
commit | 58e3ef7f54685f967acd06a71de624882258902d (patch) | |
tree | 429a29568646c137b9f50869bf2ba6e000c49dff /libavutil/timestamp.h | |
parent | dfb9d8a5a2f5300bb990c3f2240103f0d773052a (diff) |
avutil/timestamp: Constify av_ts_make_time_string()
(Actually, the time base should be passed by value.)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/timestamp.h')
-rw-r--r-- | libavutil/timestamp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/timestamp.h b/libavutil/timestamp.h index 9ae64da8a1..2b37781eba 100644 --- a/libavutil/timestamp.h +++ b/libavutil/timestamp.h @@ -62,7 +62,8 @@ static inline char *av_ts_make_string(char *buf, int64_t ts) * @param tb the timebase of the timestamp * @return the buffer in input */ -static inline char *av_ts_make_time_string(char *buf, int64_t ts, AVRational *tb) +static inline char *av_ts_make_time_string(char *buf, int64_t ts, + const AVRational *tb) { if (ts == AV_NOPTS_VALUE) snprintf(buf, AV_TS_MAX_STRING_SIZE, "NOPTS"); else snprintf(buf, AV_TS_MAX_STRING_SIZE, "%.6g", av_q2d(*tb) * ts); |