Mercurial > libavcodec.hg
diff mpegvideo_parser.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 | 13ef168891b0 |
children | 9f4f88218b78 |
line wrap: on
line diff
--- a/mpegvideo_parser.c Sun May 06 15:25:04 2007 +0000 +++ b/mpegvideo_parser.c Mon May 07 00:47:03 2007 +0000 @@ -128,7 +128,7 @@ static int mpegvideo_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) { ParseContext1 *pc1 = s->priv_data; @@ -140,7 +140,7 @@ }else{ next= ff_mpeg1_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; @@ -156,7 +156,7 @@ s->pict_type, (double)avctx->time_base.den / avctx->time_base.num, s->repeat_pict); #endif - *poutbuf = (uint8_t *)buf; + *poutbuf = buf; *poutbuf_size = buf_size; return next; }