[FFmpeg-cvslog] r11749 - trunk/libavcodec/truemotion2.c
michael
subversion
Fri Feb 1 15:30:36 CET 2008
Author: michael
Date: Fri Feb 1 15:30:35 2008
New Revision: 11749
Log:
const
Modified:
trunk/libavcodec/truemotion2.c
Modified: trunk/libavcodec/truemotion2.c
==============================================================================
--- trunk/libavcodec/truemotion2.c (original)
+++ trunk/libavcodec/truemotion2.c Fri Feb 1 15:30:35 2008
@@ -198,10 +198,10 @@ static inline int tm2_get_token(GetBitCo
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 *c
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
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 *
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)
More information about the ffmpeg-cvslog
mailing list