You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-29 05:57:37 +02:00
make some parser parameters const to avoid casting const to non-const
Originally committed as revision 8921 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user