diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-09-03 14:02:17 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-09-03 14:02:17 +0000 |
commit | a82630deb28823de6cd7fc0b7832766034681bf2 (patch) | |
tree | 7da3f401cfc03230eeb60b0bd4564a1e89a1ed95 /libavformat/avformat.h | |
parent | d3ce0792c2ae79e3e48d7732b8eeb706f70cd7de (diff) | |
download | ffmpeg-a82630deb28823de6cd7fc0b7832766034681bf2.tar.gz |
Try to clarify the semantics of AVPacket.duration.
Originally committed as revision 15178 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index efe6c2b2ae..e0cb8110e4 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 |