OSDN Git Service

Document that av_write_header sets stream time_base to a value of it chosing.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 29 Jan 2011 12:53:14 +0000 (13:53 +0100)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 31 Jan 2011 18:30:49 +0000 (19:30 +0100)
libavformat/avformat.h

index f9f9be5..82991c1 100644 (file)
@@ -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