Revision b84f2a35 libavcodec/avcodec.h

View differences:

libavcodec/avcodec.h
17 17

  
18 18
#define FFMPEG_VERSION_INT     0x000408
19 19
#define FFMPEG_VERSION         "0.4.8"
20
#define LIBAVCODEC_BUILD       4696
20
#define LIBAVCODEC_BUILD       4697
21 21

  
22 22
#define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT
23 23
#define LIBAVCODEC_VERSION     FFMPEG_VERSION
......
1932 1932
    /* video info */
1933 1933
    int pict_type; /* XXX: put it back in AVCodecContext */
1934 1934
    int repeat_pict; /* XXX: put it back in AVCodecContext */
1935
    int64_t pts;     /* in us, if given by the codec (used by raw mpeg4) */
1936
    int64_t dts;     /* in us, if given by the codec (used by raw mpeg4) */
1935
    int64_t pts;     /* pts of the current frame */
1936
    int64_t dts;     /* dts of the current frame */
1937

  
1938
    /* private data */
1939
    int64_t last_pts;
1940
    int64_t last_dts;
1941

  
1942
#define AV_PARSER_PTS_NB 4
1943
    int cur_frame_start_index;
1944
    int64_t cur_frame_offset[AV_PARSER_PTS_NB];
1945
    int64_t cur_frame_pts[AV_PARSER_PTS_NB];
1946
    int64_t cur_frame_dts[AV_PARSER_PTS_NB];
1937 1947
} AVCodecParserContext;
1938 1948

  
1939 1949
typedef struct AVCodecParser {
......
1955 1965
int av_parser_parse(AVCodecParserContext *s, 
1956 1966
                    AVCodecContext *avctx,
1957 1967
                    uint8_t **poutbuf, int *poutbuf_size, 
1958
                    const uint8_t *buf, int buf_size);
1968
                    const uint8_t *buf, int buf_size,
1969
                    int64_t pts, int64_t dts);
1959 1970
void av_parser_close(AVCodecParserContext *s);
1960 1971

  
1961 1972
extern AVCodecParser mpegvideo_parser;

Also available in: Unified diff