From: Michael Niedermayer Date: Wed, 3 Sep 2008 14:02:17 +0000 (+0000) Subject: Try to clarify the semantics of AVPacket.duration. X-Git-Tag: v0.5~2717 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a82630deb28823de6cd7fc0b7832766034681bf2;p=platform%2Fupstream%2Flibav.git 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