diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-03-01 12:25:50 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-03-03 06:31:41 +0100 |
commit | c179c9e19d3b3a8bb98fcc65d2da1caa293f7919 (patch) | |
tree | d1db30e5a80a17bd46b58b8a3805d6459549bf20 /libavcodec/avcodec.h | |
parent | 1aa708988ac131cf7d5c8bd59aca256a7c974df9 (diff) | |
download | ffmpeg-c179c9e19d3b3a8bb98fcc65d2da1caa293f7919.tar.gz |
lavc: clarify the meaning of AVCodecContext.frame_number.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 798cac6696..19f114f78d 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -1972,7 +1972,17 @@ typedef struct AVCodecContext { * Samples per packet, initialized when calling 'init'. */ int frame_size; - int frame_number; ///< audio or video frame number + + /** + * Frame counter, set by libavcodec. + * + * - decoding: total number of frames returned from the decoder so far. + * - encoding: total number of frames passed to the encoder so far. + * + * @note the counter is not incremented if encoding/decoding resulted in + * an error. + */ + int frame_number; /** * number of bytes per packet if constant and known or 0 |