diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-01-29 13:53:14 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-01-31 19:30:49 +0100 |
commit | 12763671e2dca7ab116e1ad81a2836819ff90730 (patch) | |
tree | d61d2fcb284697a662db5c07138c354f2aa90439 /libavformat/avformat.h | |
parent | 2c30f7b3d7ea6ffe5370ea18e847455e7fae3940 (diff) | |
download | ffmpeg-12763671e2dca7ab116e1ad81a2836819ff90730.tar.gz |
Document that av_write_header sets stream time_base to a value of it chosing.
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index f9f9be5b02..82991c15dc 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -507,6 +507,8 @@ typedef struct AVStream { * This is the fundamental unit of time (in seconds) in terms * of which frame timestamps are represented. For fixed-fps content, * time base should be 1/framerate and timestamp increments should be 1. + * decoding: set by libavformat + * encoding: set by libavformat in av_write_header */ AVRational time_base; int pts_wrap_bits; /**< number of bits in pts (used for wrapping control) */ @@ -1374,6 +1376,8 @@ void av_url_split(char *proto, int proto_size, /** * Allocate the stream private data and write the stream header to an * output media file. + * Note: this sets stream time-bases, if possible to stream->codec->time_base + * but for some formats it might also be some other time base * * @param s media file handle * @return 0 if OK, AVERROR_xxx on error |