Mercurial > libavcodec.hg
diff xsubdec.c @ 6218:dfdff1ca78a7 libavcodec
consts
I have underestimated this a little, and these are just some ...
author | michael |
---|---|
date | Fri, 01 Feb 2008 03:26:31 +0000 |
parents | 1900b70712ab |
children | 48759bfbd073 |
line wrap: on
line diff
--- a/xsubdec.c Fri Feb 01 02:36:09 2008 +0000 +++ b/xsubdec.c Fri Feb 01 03:26:31 2008 +0000 @@ -30,7 +30,7 @@ static const uint8_t tc_offsets[9] = { 0, 1, 3, 4, 6, 7, 9, 10, 11 }; static const uint8_t tc_muls[9] = { 10, 6, 10, 6, 10, 6, 10, 10, 1 }; -static uint64_t parse_timecode(uint8_t *buf) { +static uint64_t parse_timecode(const uint8_t *buf) { int i; int64_t ms = 0; if (buf[2] != ':' || buf[5] != ':' || buf[8] != '.') @@ -44,9 +44,9 @@ } static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, - uint8_t *buf, int buf_size) { + const uint8_t *buf, int buf_size) { AVSubtitle *sub = data; - uint8_t *buf_end = buf + buf_size; + const uint8_t *buf_end = buf + buf_size; uint8_t *bitmap; int w, h, x, y, rlelen, i; GetBitContext gb;