comparison truemotion1.c @ 6257:68d4853b5fae libavcodec

const
author michael
date Fri, 01 Feb 2008 14:28:50 +0000
parents e2dbd1623e1d
children 20a72aa8179b
comparison
equal deleted inserted replaced
6256:e7c178d397ea 6257:68d4853b5fae
41 41
42 typedef struct TrueMotion1Context { 42 typedef struct TrueMotion1Context {
43 AVCodecContext *avctx; 43 AVCodecContext *avctx;
44 AVFrame frame; 44 AVFrame frame;
45 45
46 uint8_t *buf; 46 const uint8_t *buf;
47 int size; 47 int size;
48 48
49 uint8_t *mb_change_bits; 49 const uint8_t *mb_change_bits;
50 int mb_change_bits_row_size; 50 int mb_change_bits_row_size;
51 uint8_t *index_stream; 51 uint8_t *index_stream;
52 int index_stream_size; 52 int index_stream_size;
53 53
54 int flags; 54 int flags;
844 } 844 }
845 845
846 846
847 static int truemotion1_decode_frame(AVCodecContext *avctx, 847 static int truemotion1_decode_frame(AVCodecContext *avctx,
848 void *data, int *data_size, 848 void *data, int *data_size,
849 uint8_t *buf, int buf_size) 849 const uint8_t *buf, int buf_size)
850 { 850 {
851 TrueMotion1Context *s = avctx->priv_data; 851 TrueMotion1Context *s = avctx->priv_data;
852 852
853 s->buf = buf; 853 s->buf = buf;
854 s->size = buf_size; 854 s->size = buf_size;