changeset 3878:ed2a8a769982 libavformat

Try to clarify the semantics of AVPacket.duration.
author michael
date Wed, 03 Sep 2008 14:02:17 +0000
parents 3e0c7ad2a675
children 3f4d2a22bd1b
files avformat.h
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/avformat.h	Wed Sep 03 04:47:44 2008 +0000
+++ b/avformat.h	Wed Sep 03 14:02:17 2008 +0000
@@ -70,7 +70,11 @@
     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