comparison avcodec.h @ 8973:34f2c7189710 libavcodec

Add key_frame to AVCodecParserContext, used in libavformat. Initialized to -1 in parser.c for backward compatibility. Patch by Ivan Schreter, schreter gmx net
author cehoyos
date Wed, 18 Feb 2009 23:46:05 +0000
parents 678fc8612787
children eb0da8917f17
comparison
equal deleted inserted replaced
8972:eaf39f9b25df 8973:34f2c7189710
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 15 33 #define LIBAVCODEC_VERSION_MINOR 16
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)
3023 int flags; 3023 int flags;
3024 #define PARSER_FLAG_COMPLETE_FRAMES 0x0001 3024 #define PARSER_FLAG_COMPLETE_FRAMES 0x0001
3025 3025
3026 int64_t offset; ///< byte offset from starting packet start 3026 int64_t offset; ///< byte offset from starting packet start
3027 int64_t cur_frame_end[AV_PARSER_PTS_NB]; 3027 int64_t cur_frame_end[AV_PARSER_PTS_NB];
3028
3029 /*!
3030 * Set by parser to 1 for key frames and 0 for non-key frames.
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
3033 * will be used.
3034 */
3035 int key_frame;
3028 } AVCodecParserContext; 3036 } AVCodecParserContext;
3029 3037
3030 typedef struct AVCodecParser { 3038 typedef struct AVCodecParser {
3031 int codec_ids[5]; /* several codec IDs are permitted */ 3039 int codec_ids[5]; /* several codec IDs are permitted */
3032 int priv_data_size; 3040 int priv_data_size;