summaryrefslogtreecommitdiff
path: root/libavcodec/parser.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2007-05-07 00:47:03 +0000
committerAurelien Jacobs <aurel@gnuage.org>2007-05-07 00:47:03 +0000
commitc53d2d90425e0abcca6ff96251bff84fc3993f80 (patch)
tree3679e62f3dbcf1b095d00e78cf08abf969931ab1 /libavcodec/parser.c
parent89ecc26188855c65245d4cc6c6b58e5d3c22edb6 (diff)
make some parser parameters const to avoid casting const to non-const
Originally committed as revision 8921 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/parser.c')
-rw-r--r--libavcodec/parser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/parser.c b/libavcodec/parser.c
index 170c55db80..9b1e792e26 100644
--- a/libavcodec/parser.c
+++ b/libavcodec/parser.c
@@ -130,7 +130,7 @@ int av_parser_parse(AVCodecParserContext *s,
}
/* WARNING: the returned index can be negative */
- index = s->parser->parser_parse(s, avctx, poutbuf, poutbuf_size, buf, buf_size);
+ index = s->parser->parser_parse(s, avctx, (const uint8_t **)poutbuf, poutbuf_size, buf, buf_size);
//av_log(NULL, AV_LOG_DEBUG, "parser: in:%"PRId64", %"PRId64", out:%"PRId64", %"PRId64", in:%d out:%d id:%d\n", pts, dts, s->last_pts, s->last_dts, buf_size, *poutbuf_size, avctx->codec_id);
/* update the file pointer */
if (*poutbuf_size) {
@@ -223,7 +223,7 @@ void av_parser_close(AVCodecParserContext *s)
* combines the (truncated) bitstream to a complete frame
* @returns -1 if no complete frame could be created
*/
-int ff_combine_frame(ParseContext *pc, int next, uint8_t **buf, int *buf_size)
+int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_size)
{
#if 0
if(pc->overread){
@@ -525,7 +525,7 @@ static int aac_parse_init(AVCodecParserContext *s1)
/* also used for ADTS AAC */
static int ac3_parse(AVCodecParserContext *s1,
AVCodecContext *avctx,
- uint8_t **poutbuf, int *poutbuf_size,
+ const uint8_t **poutbuf, int *poutbuf_size,
const uint8_t *buf, int buf_size)
{
AC3ParseContext *s = s1->priv_data;