comparison avcodec.h @ 4846:841ecebff8c8 libavcodec

timestamps generation improvement when parsing avi patch by Joakim \ elupus chez ecce dot se / original thread: date: 03/19/2007 01:47 AM subject: [Ffmpeg-devel] [RFC] Improvement for the odd timestamp generation when parser is in use.
author benoit
date Fri, 13 Apr 2007 07:50:04 +0000
parents 35e47a6e01e2
children 5af8895c2805
comparison
equal deleted inserted replaced
4845:78bb9129231b 4846:841ecebff8c8
35 #include <sys/types.h> /* size_t */ 35 #include <sys/types.h> /* size_t */
36 36
37 #define AV_STRINGIFY(s) AV_TOSTRING(s) 37 #define AV_STRINGIFY(s) AV_TOSTRING(s)
38 #define AV_TOSTRING(s) #s 38 #define AV_TOSTRING(s) #s
39 39
40 #define LIBAVCODEC_VERSION_INT ((51<<16)+(40<<8)+2) 40 #define LIBAVCODEC_VERSION_INT ((51<<16)+(40<<8)+3)
41 #define LIBAVCODEC_VERSION 51.40.2 41 #define LIBAVCODEC_VERSION 51.40.3
42 #define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT 42 #define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT
43 43
44 #define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION) 44 #define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)
45 45
46 #define AV_NOPTS_VALUE INT64_C(0x8000000000000000) 46 #define AV_NOPTS_VALUE INT64_C(0x8000000000000000)
2938 int64_t cur_frame_pts[AV_PARSER_PTS_NB]; 2938 int64_t cur_frame_pts[AV_PARSER_PTS_NB];
2939 int64_t cur_frame_dts[AV_PARSER_PTS_NB]; 2939 int64_t cur_frame_dts[AV_PARSER_PTS_NB];
2940 2940
2941 int flags; 2941 int flags;
2942 #define PARSER_FLAG_COMPLETE_FRAMES 0x0001 2942 #define PARSER_FLAG_COMPLETE_FRAMES 0x0001
2943
2944 int64_t offset; ///< byte offset from starting packet start
2945 int64_t last_offset;
2943 } AVCodecParserContext; 2946 } AVCodecParserContext;
2944 2947
2945 typedef struct AVCodecParser { 2948 typedef struct AVCodecParser {
2946 int codec_ids[5]; /* several codec IDs are permitted */ 2949 int codec_ids[5]; /* several codec IDs are permitted */
2947 int priv_data_size; 2950 int priv_data_size;