diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-04-04 12:20:10 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-04-04 12:20:10 +0000 |
commit | 37f57ab4dddf463dfb34736a43a13e0eed099742 (patch) | |
tree | 01cf9bf7dcd537ec820dd1025a4d6f4421caa5e5 /libavformat/avformat.h | |
parent | 2819760b5c9db0eb4e7e09e36e9a32efd6b484fd (diff) | |
download | ffmpeg-37f57ab4dddf463dfb34736a43a13e0eed099742.tar.gz |
Allow AVFormatContext.duration to be set if no individual stream duration is known.
Demuxers already do this ...
Originally committed as revision 22796 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 22f74b4013..7c7affac07 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -611,8 +611,9 @@ typedef struct AVFormatContext { It is deduced from the AVStream values. */ int64_t start_time; /** Decoding: duration of the stream, in AV_TIME_BASE fractional - seconds. NEVER set this value directly: it is deduced from the - AVStream values. */ + seconds. Only set this value if you know none of the individual stream + durations and also dont set any of them. This is deduced from the + AVStream values if not set. */ int64_t duration; /** decoding: total file size, 0 if unknown */ int64_t file_size; |