[FFmpeg-devel] [PATCH] Document that av_write_header can change stream time_base.
Reimar Döffinger
Reimar.Doeffinger
Sat Jan 29 13:54:43 CET 2011
---
libavformat/avformat.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index f9f9be5..5e01922 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 user, possibly modified 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 may change stream time-bases for formats that do
+ * not support arbitrary ones.
*
* @param s media file handle
* @return 0 if OK, AVERROR_xxx on error
--
1.7.2.3
More information about the ffmpeg-devel
mailing list