Mercurial > libavcodec.hg
diff avcodec.h @ 2769:1394b45a7bf4 libavcodec
support changing in bitstream global headers into extradata style and back
author | michael |
---|---|
date | Mon, 27 Jun 2005 00:04:03 +0000 |
parents | d2b3f948599d |
children | 930e56f92c57 |
line wrap: on
line diff
--- a/avcodec.h Sun Jun 26 23:04:59 2005 +0000 +++ b/avcodec.h Mon Jun 27 00:04:03 2005 +0000 @@ -341,6 +341,7 @@ #define CODEC_FLAG2_FAST 0x00000001 ///< allow non spec compliant speedup tricks #define CODEC_FLAG2_STRICT_GOP 0x00000002 ///< strictly enforce GOP size #define CODEC_FLAG2_NO_OUTPUT 0x00000004 ///< skip bitstream encoding +#define CODEC_FLAG2_LOCAL_HEADER 0x00000008 ///< place global headers at every keyframe instead of in extradata /* Unsupported options : * Syntax Arithmetic coding (SAC) @@ -2322,6 +2323,7 @@ uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size); void (*parser_close)(AVCodecParserContext *s); + int (*split)(AVCodecContext *avctx, const uint8_t *buf, int buf_size); struct AVCodecParser *next; } AVCodecParser; @@ -2334,6 +2336,10 @@ uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int64_t pts, int64_t dts); +int av_parser_change(AVCodecParserContext *s, + AVCodecContext *avctx, + uint8_t **poutbuf, int *poutbuf_size, + const uint8_t *buf, int buf_size, int keyframe); void av_parser_close(AVCodecParserContext *s); extern AVCodecParser mpegvideo_parser;