1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

avoid a 'discards qualifiers from pointer' warning

Originally committed as revision 8900 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs 2007-05-05 18:17:03 +00:00
parent 0cb4172803
commit 89550b2d68

View File

@ -186,7 +186,7 @@ static int mpegaudio_parse(AVCodecParserContext *s1,
if(s->frame_size > 0 && buf_ptr - buf == s->inbuf_ptr - s->inbuf if(s->frame_size > 0 && buf_ptr - buf == s->inbuf_ptr - s->inbuf
&& buf_size + buf_ptr - buf >= s->frame_size){ && buf_size + buf_ptr - buf >= s->frame_size){
if(s->header_count > 0){ if(s->header_count > 0){
*poutbuf = buf; *poutbuf = (uint8_t *)buf;
*poutbuf_size = s->frame_size; *poutbuf_size = s->frame_size;
} }
buf_ptr = buf + s->frame_size; buf_ptr = buf + s->frame_size;