Mercurial > libavcodec.hg
comparison h261_parser.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 | 983533ccc393 |
children | da1ca444ff51 |
comparison
equal
deleted
inserted
replaced
4930:655d25351bfc | 4931:0d1cc37d9430 |
---|---|
62 return END_NOT_FOUND; | 62 return END_NOT_FOUND; |
63 } | 63 } |
64 | 64 |
65 static int h261_parse(AVCodecParserContext *s, | 65 static int h261_parse(AVCodecParserContext *s, |
66 AVCodecContext *avctx, | 66 AVCodecContext *avctx, |
67 uint8_t **poutbuf, int *poutbuf_size, | 67 const uint8_t **poutbuf, int *poutbuf_size, |
68 const uint8_t *buf, int buf_size) | 68 const uint8_t *buf, int buf_size) |
69 { | 69 { |
70 ParseContext *pc = s->priv_data; | 70 ParseContext *pc = s->priv_data; |
71 int next; | 71 int next; |
72 | 72 |
73 next= h261_find_frame_end(pc,avctx, buf, buf_size); | 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 *poutbuf = NULL; | 75 *poutbuf = NULL; |
76 *poutbuf_size = 0; | 76 *poutbuf_size = 0; |
77 return buf_size; | 77 return buf_size; |
78 } | 78 } |
79 *poutbuf = (uint8_t *)buf; | 79 *poutbuf = buf; |
80 *poutbuf_size = buf_size; | 80 *poutbuf_size = buf_size; |
81 return next; | 81 return next; |
82 } | 82 } |
83 | 83 |
84 AVCodecParser h261_parser = { | 84 AVCodecParser h261_parser = { |