changeset 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 08cd1179a20d
children 310b3b1b2921
files avformat.h
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
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;