Mercurial > libavcodec.hg
comparison cavs.c @ 4931:0d1cc37d9430 libavcodec
make some parser parameters const to avoid casting const to non-const
author | aurel |
---|---|
date | Mon, 07 May 2007 00:47:03 +0000 |
parents | f77445d40161 |
children | 5d4544d7cbbc |
comparison
equal
deleted
inserted
replaced
4930:655d25351bfc | 4931:0d1cc37d9430 |
---|---|
1504 return END_NOT_FOUND; | 1504 return END_NOT_FOUND; |
1505 } | 1505 } |
1506 | 1506 |
1507 static int cavsvideo_parse(AVCodecParserContext *s, | 1507 static int cavsvideo_parse(AVCodecParserContext *s, |
1508 AVCodecContext *avctx, | 1508 AVCodecContext *avctx, |
1509 uint8_t **poutbuf, int *poutbuf_size, | 1509 const uint8_t **poutbuf, int *poutbuf_size, |
1510 const uint8_t *buf, int buf_size) | 1510 const uint8_t *buf, int buf_size) |
1511 { | 1511 { |
1512 ParseContext *pc = s->priv_data; | 1512 ParseContext *pc = s->priv_data; |
1513 int next; | 1513 int next; |
1514 | 1514 |
1515 if(s->flags & PARSER_FLAG_COMPLETE_FRAMES){ | 1515 if(s->flags & PARSER_FLAG_COMPLETE_FRAMES){ |
1516 next= buf_size; | 1516 next= buf_size; |
1517 }else{ | 1517 }else{ |
1518 next= cavs_find_frame_end(pc, buf, buf_size); | 1518 next= cavs_find_frame_end(pc, buf, buf_size); |
1519 | 1519 |
1520 if (ff_combine_frame(pc, next, (uint8_t **)&buf, &buf_size) < 0) { | 1520 if (ff_combine_frame(pc, next, &buf, &buf_size) < 0) { |
1521 *poutbuf = NULL; | 1521 *poutbuf = NULL; |
1522 *poutbuf_size = 0; | 1522 *poutbuf_size = 0; |
1523 return buf_size; | 1523 return buf_size; |
1524 } | 1524 } |
1525 } | 1525 } |
1526 *poutbuf = (uint8_t *)buf; | 1526 *poutbuf = buf; |
1527 *poutbuf_size = buf_size; | 1527 *poutbuf_size = buf_size; |
1528 return next; | 1528 return next; |
1529 } | 1529 } |
1530 | 1530 |
1531 AVCodecParser cavsvideo_parser = { | 1531 AVCodecParser cavsvideo_parser = { |