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>
This commit is contained in:
Andreas Rheinhardt
2025-03-15 22:10:44 +01:00
committed by James Almer
parent b306683d12
commit c389d9ac78
10 changed files with 36 additions and 67 deletions

View File

@@ -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 */