diff options
author | Marton Balint <cus@passwd.hu> | 2016-06-29 22:44:59 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2016-08-17 23:45:41 +0200 |
commit | b72a7b96f84e5f16dd93b60668aecfda99442c71 (patch) | |
tree | 0f51e4e5cdb3a35aad6aa1652d1554dbc93d2653 /libavutil/internal.h | |
parent | a810126fd1b922154359a84b49ae2b7b9568efae (diff) | |
download | ffmpeg-b72a7b96f84e5f16dd93b60668aecfda99442c71.tar.gz |
avformat: factorize iso 8601 timestamp writer to a dictionary avutil function
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavutil/internal.h')
-rw-r--r-- | libavutil/internal.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h index 61784b5128..e995af97e4 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -330,6 +330,16 @@ static av_always_inline av_const int avpriv_mirror(int x, int w) void ff_check_pixfmt_descriptors(void); +/** + * Set a dictionary value to an ISO-8601 compliant timestamp string. + * + * @param s AVFormatContext + * @param key metadata key + * @param timestamp unix timestamp in microseconds + * @return <0 on error + */ +int avpriv_dict_set_timestamp(AVDictionary **dict, const char *key, int64_t timestamp); + extern const uint8_t ff_reverse[256]; #endif /* AVUTIL_INTERNAL_H */ |