Revision c53d2d90 libavcodec/mpegaudio_parser.c

View differences:

libavcodec/mpegaudio_parser.c
50 50

  
51 51
static int mpegaudio_parse(AVCodecParserContext *s1,
52 52
                           AVCodecContext *avctx,
53
                           uint8_t **poutbuf, int *poutbuf_size,
53
                           const uint8_t **poutbuf, int *poutbuf_size,
54 54
                           const uint8_t *buf, int buf_size)
55 55
{
56 56
    MpegAudioParseContext *s = s1->priv_data;
......
186 186
        if(s->frame_size > 0 && buf_ptr - buf == s->inbuf_ptr - s->inbuf
187 187
           && buf_size + buf_ptr - buf >= s->frame_size){
188 188
            if(s->header_count > 0){
189
                *poutbuf = (uint8_t *)buf;
189
                *poutbuf = buf;
190 190
                *poutbuf_size = s->frame_size;
191 191
            }
192 192
            buf_ptr = buf + s->frame_size;

Also available in: Unified diff