Revision c53d2d90 libavcodec/mpeg4video_parser.c

View differences:

libavcodec/mpeg4video_parser.c
65 65

  
66 66
static int mpeg4video_parse(AVCodecParserContext *s,
67 67
                           AVCodecContext *avctx,
68
                           uint8_t **poutbuf, int *poutbuf_size,
68
                           const uint8_t **poutbuf, int *poutbuf_size,
69 69
                           const uint8_t *buf, int buf_size)
70 70
{
71 71
    ParseContext *pc = s->priv_data;
......
76 76
    }else{
77 77
        next= ff_mpeg4_find_frame_end(pc, buf, buf_size);
78 78

  
79
        if (ff_combine_frame(pc, next, (uint8_t **)&buf, &buf_size) < 0) {
79
        if (ff_combine_frame(pc, next, &buf, &buf_size) < 0) {
80 80
            *poutbuf = NULL;
81 81
            *poutbuf_size = 0;
82 82
            return buf_size;
......
84 84
    }
85 85
    av_mpeg4_decode_header(s, avctx, buf, buf_size);
86 86

  
87
    *poutbuf = (uint8_t *)buf;
87
    *poutbuf = buf;
88 88
    *poutbuf_size = buf_size;
89 89
    return next;
90 90
}

Also available in: Unified diff