Revision c53d2d90 libavcodec/parser.c

View differences:

libavcodec/parser.c
130 130
    }
131 131

  
132 132
    /* WARNING: the returned index can be negative */
133
    index = s->parser->parser_parse(s, avctx, poutbuf, poutbuf_size, buf, buf_size);
133
    index = s->parser->parser_parse(s, avctx, (const uint8_t **)poutbuf, poutbuf_size, buf, buf_size);
134 134
//av_log(NULL, AV_LOG_DEBUG, "parser: in:%"PRId64", %"PRId64", out:%"PRId64", %"PRId64", in:%d out:%d id:%d\n", pts, dts, s->last_pts, s->last_dts, buf_size, *poutbuf_size, avctx->codec_id);
135 135
    /* update the file pointer */
136 136
    if (*poutbuf_size) {
......
223 223
 * combines the (truncated) bitstream to a complete frame
224 224
 * @returns -1 if no complete frame could be created
225 225
 */
226
int ff_combine_frame(ParseContext *pc, int next, uint8_t **buf, int *buf_size)
226
int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_size)
227 227
{
228 228
#if 0
229 229
    if(pc->overread){
......
525 525
/* also used for ADTS AAC */
526 526
static int ac3_parse(AVCodecParserContext *s1,
527 527
                     AVCodecContext *avctx,
528
                     uint8_t **poutbuf, int *poutbuf_size,
528
                     const uint8_t **poutbuf, int *poutbuf_size,
529 529
                     const uint8_t *buf, int buf_size)
530 530
{
531 531
    AC3ParseContext *s = s1->priv_data;

Also available in: Unified diff