mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-13 12:34:26 +08:00
avformat/utils: Move creation-time functions to mux_utils
Only used by muxers. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -103,4 +103,24 @@ enum AVWriteUncodedFrameFlags {
|
||||
*/
|
||||
int ff_format_shift_data(AVFormatContext *s, int64_t read_start, int shift_size);
|
||||
|
||||
/**
|
||||
* Parse creation_time in AVFormatContext metadata if exists and warn if the
|
||||
* parsing fails.
|
||||
*
|
||||
* @param s AVFormatContext
|
||||
* @param timestamp parsed timestamp in microseconds, only set on successful parsing
|
||||
* @param return_seconds set this to get the number of seconds in timestamp instead of microseconds
|
||||
* @return 1 if OK, 0 if the metadata was not present, AVERROR(EINVAL) on parse error
|
||||
*/
|
||||
int ff_parse_creation_time_metadata(AVFormatContext *s, int64_t *timestamp, int return_seconds);
|
||||
|
||||
/**
|
||||
* Standardize creation_time metadata in AVFormatContext to an ISO-8601
|
||||
* timestamp string.
|
||||
*
|
||||
* @param s AVFormatContext
|
||||
* @return <0 on error
|
||||
*/
|
||||
int ff_standardize_creation_time(AVFormatContext *s);
|
||||
|
||||
#endif /* AVFORMAT_MUX_H */
|
||||
|
Reference in New Issue
Block a user