comparison avcodec.h @ 4931:0d1cc37d9430 libavcodec

make some parser parameters const to avoid casting const to non-const
author aurel
date Mon, 07 May 2007 00:47:03 +0000
parents 6406b4e280d6
children 7c6a0470eb63
comparison
equal deleted inserted replaced
4930:655d25351bfc 4931:0d1cc37d9430
2979 int codec_ids[5]; /* several codec IDs are permitted */ 2979 int codec_ids[5]; /* several codec IDs are permitted */
2980 int priv_data_size; 2980 int priv_data_size;
2981 int (*parser_init)(AVCodecParserContext *s); 2981 int (*parser_init)(AVCodecParserContext *s);
2982 int (*parser_parse)(AVCodecParserContext *s, 2982 int (*parser_parse)(AVCodecParserContext *s,
2983 AVCodecContext *avctx, 2983 AVCodecContext *avctx,
2984 uint8_t **poutbuf, int *poutbuf_size, 2984 const uint8_t **poutbuf, int *poutbuf_size,
2985 const uint8_t *buf, int buf_size); 2985 const uint8_t *buf, int buf_size);
2986 void (*parser_close)(AVCodecParserContext *s); 2986 void (*parser_close)(AVCodecParserContext *s);
2987 int (*split)(AVCodecContext *avctx, const uint8_t *buf, int buf_size); 2987 int (*split)(AVCodecContext *avctx, const uint8_t *buf, int buf_size);
2988 struct AVCodecParser *next; 2988 struct AVCodecParser *next;
2989 } AVCodecParser; 2989 } AVCodecParser;