summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-01-29 13:53:14 +0100
committerJanne Grunau <janne-ffmpeg@jannau.net>2011-02-16 10:33:40 +0100
commit5d820db2f9c396373f2293e6b41944093a4766d5 (patch)
tree596494574039f346de1d6241965e0b12f2fa8eb2
parentec25f83bd98e10c023e6c7b07da1dcfc4d80cefc (diff)
Document that av_write_header sets stream time_base to a value of it chosing.
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
-rw-r--r--libavformat/avformat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 8fb77f958c..afcf5b0d11 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -510,6 +510,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) */
@@ -1380,6 +1382,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