Revision c53d2d90 libavcodec/h261_parser.c

View differences:

libavcodec/h261_parser.c
64 64

  
65 65
static int h261_parse(AVCodecParserContext *s,
66 66
                      AVCodecContext *avctx,
67
                      uint8_t **poutbuf, int *poutbuf_size,
67
                      const uint8_t **poutbuf, int *poutbuf_size,
68 68
                      const uint8_t *buf, int buf_size)
69 69
{
70 70
    ParseContext *pc = s->priv_data;
71 71
    int next;
72 72

  
73 73
    next= h261_find_frame_end(pc,avctx, buf, buf_size);
74
    if (ff_combine_frame(pc, next, (uint8_t **)&buf, &buf_size) < 0) {
74
    if (ff_combine_frame(pc, next, &buf, &buf_size) < 0) {
75 75
        *poutbuf = NULL;
76 76
        *poutbuf_size = 0;
77 77
        return buf_size;
78 78
    }
79
    *poutbuf = (uint8_t *)buf;
79
    *poutbuf = buf;
80 80
    *poutbuf_size = buf_size;
81 81
    return next;
82 82
}

Also available in: Unified diff