Mercurial > libavcodec.hg
comparison mpegaudio_parser.c @ 4914:b0a24fa7cbea libavcodec
avoid a 'discards qualifiers from pointer' warning
author | aurel |
---|---|
date | Sat, 05 May 2007 18:17:03 +0000 |
parents | b7bde71aa752 |
children | 0d1cc37d9430 |
comparison
equal
deleted
inserted
replaced
4913:b7bde71aa752 | 4914:b0a24fa7cbea |
---|---|
184 } | 184 } |
185 | 185 |
186 if(s->frame_size > 0 && buf_ptr - buf == s->inbuf_ptr - s->inbuf | 186 if(s->frame_size > 0 && buf_ptr - buf == s->inbuf_ptr - s->inbuf |
187 && buf_size + buf_ptr - buf >= s->frame_size){ | 187 && buf_size + buf_ptr - buf >= s->frame_size){ |
188 if(s->header_count > 0){ | 188 if(s->header_count > 0){ |
189 *poutbuf = buf; | 189 *poutbuf = (uint8_t *)buf; |
190 *poutbuf_size = s->frame_size; | 190 *poutbuf_size = s->frame_size; |
191 } | 191 } |
192 buf_ptr = buf + s->frame_size; | 192 buf_ptr = buf + s->frame_size; |
193 s->inbuf_ptr = s->inbuf; | 193 s->inbuf_ptr = s->inbuf; |
194 s->frame_size = 0; | 194 s->frame_size = 0; |