Commit 7b356d39 authored by Robert Swain's avatar Robert Swain

Clarify which time_base the relevant members of AVPacket use

Originally committed as revision 18371 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 3c8d1447
...@@ -845,8 +845,8 @@ typedef struct AVPanScan{ ...@@ -845,8 +845,8 @@ typedef struct AVPanScan{
typedef struct AVPacket { typedef struct AVPacket {
/** /**
* Presentation timestamp in time_base units; the time at which the * Presentation timestamp in AVStream->time_base units; the time at which
* decompressed packet will be presented to the user. * the decompressed packet will be presented to the user.
* Can be AV_NOPTS_VALUE if it is not stored in the file. * Can be AV_NOPTS_VALUE if it is not stored in the file.
* pts MUST be larger or equal to dts as presentation cannot happen before * pts MUST be larger or equal to dts as presentation cannot happen before
* decompression, unless one wants to view hex dumps. Some formats misuse * decompression, unless one wants to view hex dumps. Some formats misuse
...@@ -855,8 +855,8 @@ typedef struct AVPacket { ...@@ -855,8 +855,8 @@ typedef struct AVPacket {
*/ */
int64_t pts; int64_t pts;
/** /**
* Decompression timestamp in time_base units; the time at which the * Decompression timestamp in AVStream->time_base units; the time at which
* packet is decompressed. * the packet is decompressed.
* Can be AV_NOPTS_VALUE if it is not stored in the file. * Can be AV_NOPTS_VALUE if it is not stored in the file.
*/ */
int64_t dts; int64_t dts;
...@@ -865,7 +865,7 @@ typedef struct AVPacket { ...@@ -865,7 +865,7 @@ typedef struct AVPacket {
int stream_index; int stream_index;
int flags; int flags;
/** /**
* Duration of this packet in time_base units, 0 if unknown. * Duration of this packet in AVStream->time_base units, 0 if unknown.
* Equals next_pts - this_pts in presentation order. * Equals next_pts - this_pts in presentation order.
*/ */
int duration; int duration;
...@@ -874,7 +874,7 @@ typedef struct AVPacket { ...@@ -874,7 +874,7 @@ typedef struct AVPacket {
int64_t pos; ///< byte position in stream, -1 if unknown int64_t pos; ///< byte position in stream, -1 if unknown
/** /**
* Time difference in stream time base units from the pts of this * Time difference in AVStream->time_base units from the pts of this
* packet to the point at which the output from the decoder has converged * packet to the point at which the output from the decoder has converged
* independent from the availability of previous frames. That is, the * independent from the availability of previous frames. That is, the
* frames are virtually identical no matter if decoding started from * frames are virtually identical no matter if decoding started from
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment