Mercurial > libavcodec.hg
diff h263dec.c @ 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 | 5bcb6208ac58 |
children | ee6c1ce06470 |
line wrap: on
line diff
--- a/h263dec.c Sun May 06 15:25:04 2007 +0000 +++ b/h263dec.c Mon May 07 00:47:03 2007 +0000 @@ -396,7 +396,7 @@ #ifdef CONFIG_H263_PARSER static int h263_parse(AVCodecParserContext *s, AVCodecContext *avctx, - uint8_t **poutbuf, int *poutbuf_size, + const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { ParseContext *pc = s->priv_data; @@ -404,13 +404,13 @@ next= h263_find_frame_end(pc, buf, buf_size); - if (ff_combine_frame(pc, next, (uint8_t **)&buf, &buf_size) < 0) { + if (ff_combine_frame(pc, next, &buf, &buf_size) < 0) { *poutbuf = NULL; *poutbuf_size = 0; return buf_size; } - *poutbuf = (uint8_t *)buf; + *poutbuf = buf; *poutbuf_size = buf_size; return next; } @@ -460,7 +460,7 @@ return -1; } - if( ff_combine_frame(&s->parse_context, next, &buf, &buf_size) < 0 ) + if( ff_combine_frame(&s->parse_context, next, (const uint8_t **)&buf, &buf_size) < 0 ) return buf_size; }