mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
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
This commit is contained in:
parent
2819760b5c
commit
37f57ab4dd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user