diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-02-01 14:30:35 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-02-01 14:30:35 +0000 |
commit | a8a8f204f09aeb2535dcc5aa3778e0d291d6786a (patch) | |
tree | e0e89f8c2e096465a035f26c9d98fb76f2e8506c | |
parent | f5b2e900105bcc923dfeb9018c1bf8b974a36b1e (diff) | |
download | ffmpeg-a8a8f204f09aeb2535dcc5aa3778e0d291d6786a.tar.gz |
const
Originally committed as revision 11749 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/truemotion2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/truemotion2.c b/libavcodec/truemotion2.c index 494dfd55fc..4a4ea7b416 100644 --- a/libavcodec/truemotion2.c +++ b/libavcodec/truemotion2.c @@ -198,10 +198,10 @@ static inline int tm2_get_token(GetBitContext *gb, TM2Codes *code) return code->recode[val]; } -static inline int tm2_read_header(TM2Context *ctx, uint8_t *buf) +static inline int tm2_read_header(TM2Context *ctx, const uint8_t *buf) { uint32_t magic; - uint8_t *obuf; + const uint8_t *obuf; int length; obuf = buf; @@ -260,7 +260,7 @@ static int tm2_read_deltas(TM2Context *ctx, int stream_id) { return 0; } -static int tm2_read_stream(TM2Context *ctx, uint8_t *buf, int stream_id) { +static int tm2_read_stream(TM2Context *ctx, const uint8_t *buf, int stream_id) { int i; int cur = 0; int skip = 0; @@ -759,7 +759,7 @@ static int tm2_decode_blocks(TM2Context *ctx, AVFrame *p) static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, - uint8_t *buf, int buf_size) + const uint8_t *buf, int buf_size) { TM2Context * const l = avctx->priv_data; AVFrame * const p= (AVFrame*)&l->pic; @@ -772,7 +772,7 @@ static int decode_frame(AVCodecContext *avctx, return -1; } - l->dsp.bswap_buf((uint32_t*)buf, (uint32_t*)buf, buf_size >> 2); + l->dsp.bswap_buf((uint32_t*)buf, (const uint32_t*)buf, buf_size >> 2); //FIXME SERIOUS BUG skip = tm2_read_header(l, buf); if(skip == -1) |