# HG changeset patch # User mstorsjo # Date 1268648977 0 # Node ID 2dd1e67a5892f1b7d31e0a3f1329b32b4091a3df # Parent 446f49e8942a2ce01f9c737bb35eb23f8b98f058 Add a new field AVFormatContext.start_time_realtime Currently intended to be used by the RTP muxer diff -r 446f49e8942a -r 2dd1e67a5892 avformat.h --- a/avformat.h Mon Mar 15 08:49:02 2010 +0000 +++ b/avformat.h Mon Mar 15 10:29:37 2010 +0000 @@ -22,7 +22,7 @@ #define AVFORMAT_AVFORMAT_H #define LIBAVFORMAT_VERSION_MAJOR 52 -#define LIBAVFORMAT_VERSION_MINOR 55 +#define LIBAVFORMAT_VERSION_MINOR 56 #define LIBAVFORMAT_VERSION_MICRO 0 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ @@ -726,6 +726,15 @@ */ #define RAW_PACKET_BUFFER_SIZE 2500000 int raw_packet_buffer_remaining_size; + + /** + * Start time of the stream in real world time, in microseconds + * since the unix epoch (00:00 1st January 1970). That is, pts=0 + * in the stream was captured at this real world time. + * - encoding: Set by user. + * - decoding: Unused. + */ + int64_t start_time_realtime; } AVFormatContext; typedef struct AVPacketList {