Revision c53d2d90 libavcodec/mpegvideo_parser.c

View differences:

libavcodec/mpegvideo_parser.c
128 128

  
129 129
static int mpegvideo_parse(AVCodecParserContext *s,
130 130
                           AVCodecContext *avctx,
131
                           uint8_t **poutbuf, int *poutbuf_size,
131
                           const uint8_t **poutbuf, int *poutbuf_size,
132 132
                           const uint8_t *buf, int buf_size)
133 133
{
134 134
    ParseContext1 *pc1 = s->priv_data;
......
140 140
    }else{
141 141
        next= ff_mpeg1_find_frame_end(pc, buf, buf_size);
142 142

  
143
        if (ff_combine_frame(pc, next, (uint8_t **)&buf, &buf_size) < 0) {
143
        if (ff_combine_frame(pc, next, &buf, &buf_size) < 0) {
144 144
            *poutbuf = NULL;
145 145
            *poutbuf_size = 0;
146 146
            return buf_size;
......
156 156
           s->pict_type, (double)avctx->time_base.den / avctx->time_base.num, s->repeat_pict);
157 157
#endif
158 158

  
159
    *poutbuf = (uint8_t *)buf;
159
    *poutbuf = buf;
160 160
    *poutbuf_size = buf_size;
161 161
    return next;
162 162
}

Also available in: Unified diff