Mercurial > libavcodec.hg
comparison avcodec.h @ 8989:cdd8fa4a362a libavcodec
Add convergence_duration to AVCodecParserContext.
Patch by Ivan Schreter, schreter gmx net
author | cehoyos |
---|---|
date | Thu, 19 Feb 2009 23:35:59 +0000 |
parents | eb0da8917f17 |
children | 78afc2990d00 |
comparison
equal
deleted
inserted
replaced
8988:48c89edff557 | 8989:cdd8fa4a362a |
---|---|
28 | 28 |
29 #include <errno.h> | 29 #include <errno.h> |
30 #include "libavutil/avutil.h" | 30 #include "libavutil/avutil.h" |
31 | 31 |
32 #define LIBAVCODEC_VERSION_MAJOR 52 | 32 #define LIBAVCODEC_VERSION_MAJOR 52 |
33 #define LIBAVCODEC_VERSION_MINOR 17 | 33 #define LIBAVCODEC_VERSION_MINOR 18 |
34 #define LIBAVCODEC_VERSION_MICRO 0 | 34 #define LIBAVCODEC_VERSION_MICRO 0 |
35 | 35 |
36 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ | 36 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ |
37 LIBAVCODEC_VERSION_MINOR, \ | 37 LIBAVCODEC_VERSION_MINOR, \ |
38 LIBAVCODEC_VERSION_MICRO) | 38 LIBAVCODEC_VERSION_MICRO) |
3031 * It is initialized to -1, so if the parser doesn't set this flag, | 3031 * It is initialized to -1, so if the parser doesn't set this flag, |
3032 * old-style fallback using FF_I_TYPE picture type as key frames | 3032 * old-style fallback using FF_I_TYPE picture type as key frames |
3033 * will be used. | 3033 * will be used. |
3034 */ | 3034 */ |
3035 int key_frame; | 3035 int key_frame; |
3036 | |
3037 /** | |
3038 * Time difference in stream time base units from the pts of this | |
3039 * packet to the point at which the output from the decoder has converged | |
3040 * independent from the availability of previous frames. That is, the | |
3041 * frames are virtually identical no matter if decoding started from | |
3042 * the very first frame or from this keyframe. | |
3043 * Is AV_NOPTS_VALUE if unknown. | |
3044 * This field is not the display duration of the current frame. | |
3045 * | |
3046 * The purpose of this field is to allow seeking in streams that have no | |
3047 * keyframes in the conventional sense. It corresponds to the | |
3048 * recovery point SEI in H.264 and match_time_delta in NUT. It is also | |
3049 * essential for some types of subtitle streams to ensure that all | |
3050 * subtitles are correctly displayed after seeking. | |
3051 */ | |
3052 int64_t convergence_duration; | |
3036 } AVCodecParserContext; | 3053 } AVCodecParserContext; |
3037 | 3054 |
3038 typedef struct AVCodecParser { | 3055 typedef struct AVCodecParser { |
3039 int codec_ids[5]; /* several codec IDs are permitted */ | 3056 int codec_ids[5]; /* several codec IDs are permitted */ |
3040 int priv_data_size; | 3057 int priv_data_size; |