avformat: factorize iso 8601 timestamp writer to a dictionary avutil function

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint 2016-06-29 22:44:59 +02:00
parent a810126fd1
commit b72a7b96f8
3 changed files with 29 additions and 14 deletions

View file

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