[SCM] libav/experimental: Try to clarify the semantics of AVPacket.duration.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:29:21 UTC 2013


The following commit has been merged in the experimental branch:
commit a82630deb28823de6cd7fc0b7832766034681bf2
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Wed Sep 3 14:02:17 2008 +0000

    Try to clarify the semantics of AVPacket.duration.
    
    Originally committed as revision 15178 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index efe6c2b..e0cb811 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -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

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list