Commit b0726138 authored by michael's avatar michael

Allow AVFormatContext.duration to be set if no individual stream duration is known.

Demuxers already do this ...


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22796 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bd55f7cc
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment