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/mpegaudio_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/mpegaudio_parser.c') diff --git a/libavcodec/mpegaudio_parser.c b/libavcodec/mpegaudio_parser.c index 96ef0f4636..8fb18ca5d4 100644 --- a/libavcodec/mpegaudio_parser.c +++ b/libavcodec/mpegaudio_parser.c @@ -50,7 +50,7 @@ static int mpegaudio_parse_init(AVCodecParserContext *s1) static int mpegaudio_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) { MpegAudioParseContext *s = s1->priv_data; @@ -186,7 +186,7 @@ static int mpegaudio_parse(AVCodecParserContext *s1, if(s->frame_size > 0 && buf_ptr - buf == s->inbuf_ptr - s->inbuf && buf_size + buf_ptr - buf >= s->frame_size){ if(s->header_count > 0){ - *poutbuf = (uint8_t *)buf; + *poutbuf = buf; *poutbuf_size = s->frame_size; } buf_ptr = buf + s->frame_size; -- cgit v1.2.3