From c53d2d90425e0abcca6ff96251bff84fc3993f80 Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Mon, 7 May 2007 00:47:03 +0000 Subject: make some parser parameters const to avoid casting const to non-const Originally committed as revision 8921 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h261_parser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavcodec/h261_parser.c') diff --git a/libavcodec/h261_parser.c b/libavcodec/h261_parser.c index 8c32b8bb0d..3671cdbf72 100644 --- a/libavcodec/h261_parser.c +++ b/libavcodec/h261_parser.c @@ -64,19 +64,19 @@ static int h261_find_frame_end(ParseContext *pc, AVCodecContext* avctx, const ui static int h261_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; int next; next= h261_find_frame_end(pc,avctx, 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; } -- cgit v1.2.3