From 89550b2d68579e8b7f43d6f862d8b9aca540a5ee Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Sat, 5 May 2007 18:17:03 +0000 Subject: [PATCH] avoid a 'discards qualifiers from pointer' warning Originally committed as revision 8900 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mpegaudio_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpegaudio_parser.c b/libavcodec/mpegaudio_parser.c index 32f52efa5a..96ef0f4636 100644 --- a/libavcodec/mpegaudio_parser.c +++ b/libavcodec/mpegaudio_parser.c @@ -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 = buf; + *poutbuf = (uint8_t *)buf; *poutbuf_size = s->frame_size; } buf_ptr = buf + s->frame_size;