]> git.sesse.net Git - ffmpeg/commitdiff
Try to clarify the semantics of AVPacket.duration.
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 3 Sep 2008 14:02:17 +0000 (14:02 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 3 Sep 2008 14:02:17 +0000 (14:02 +0000)
Originally committed as revision 15178 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/avformat.h

index efe6c2b2ae80e936c9004048cc9b6922f7c9543d..e0cb8110e401106d895905c1e74e583043c7a69a 100644 (file)
@@ -70,7 +70,11 @@ typedef struct AVPacket {
     int   size;
     int   stream_index;
     int   flags;
-    int   duration;                         ///< presentation duration in time_base units (0 if not available)
+    /**
+     * Duration of this packet in time_base units, 0 if unknown.
+     * Equals next_pts - this_pts in presentation order.
+     */
+    int   duration;
     void  (*destruct)(struct AVPacket *);
     void  *priv;
     int64_t pos;                            ///< byte position in stream, -1 if unknown