Mercurial > libavformat.hg
diff avformat.h @ 5931:742d48f7f5fb libavformat
Allow AVFormatContext.duration to be set if no individual stream duration is known.
Demuxers already do this ...
| author | michael |
|---|---|
| date | Sun, 04 Apr 2010 12:20:10 +0000 |
| parents | 4cc7fc1878b4 |
| children | 854b3ac40b8e |
line wrap: on
line diff
--- 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;
