# HG changeset patch # User michael # Date 1270383610 0 # Node ID 742d48f7f5fbc5d54808b493b00405e250bb9e5c # Parent 08cd1179a20dc04a6ed0dbe56f8ed99989597d70 Allow AVFormatContext.duration to be set if no individual stream duration is known. Demuxers already do this ... diff -r 08cd1179a20d -r 742d48f7f5fb avformat.h --- a/avformat.h Sat Apr 03 14:15:00 2010 +0000 +++ b/avformat.h Sun Apr 04 12:20:10 2010 +0000 @@ -611,8 +611,9 @@ 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;