diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-03-15 22:10:44 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2025-03-28 14:33:08 -0300 |
commit | c389d9ac788a529331722f6b3f13c5894114a28c (patch) | |
tree | 1b9672f7a10043f4967d72927964017c2d8d41a4 /libavformat/internal.h | |
parent | b306683d1228b1642a0d88a29071de5bdee999ff (diff) | |
download | ffmpeg-c389d9ac788a529331722f6b3f13c5894114a28c.tar.gz |
avutil/dict: Unavpriv avpriv_dict_set_timestamp()
And move it to lavf, its only user.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h index 500c310b88..fe428d85eb 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -640,4 +640,15 @@ int ff_match_url_ext(const char *url, const char *extensions); int ff_get_frame_filename(char *buf, int buf_size, const char *path, int64_t number, int flags); +/** + * Set a dictionary value to an ISO-8601 compliant timestamp string. + * + * @param dict pointer to a pointer to a dictionary struct. If *dict is NULL + * a dictionary struct is allocated and put in *dict. + * @param key metadata key + * @param timestamp unix timestamp in microseconds + * @return <0 on error + */ +int ff_dict_set_timestamp(AVDictionary **dict, const char *key, int64_t timestamp); + #endif /* AVFORMAT_INTERNAL_H */ |