[FFmpeg-cvslog] r22796 - trunk/libavformat/avformat.h

michael subversion
Sun Apr 4 14:20:10 CEST 2010


Author: michael
Date: Sun Apr  4 14:20:10 2010
New Revision: 22796

Log:
Allow AVFormatContext.duration to be set if no individual stream duration is known.
Demuxers already do this ...

Modified:
   trunk/libavformat/avformat.h

Modified: trunk/libavformat/avformat.h
==============================================================================
--- trunk/libavformat/avformat.h	Sun Apr  4 09:18:10 2010	(r22795)
+++ trunk/libavformat/avformat.h	Sun Apr  4 14:20:10 2010	(r22796)
@@ -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;



More information about the ffmpeg-cvslog mailing list