Mercurial > libavcodec.hg
comparison msvideo1.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 | 2b72f9bc4f06 |
| children | 814c8bd77d91 |
comparison
equal
deleted
inserted
replaced
| 6217:f838213ca91b | 6218:dfdff1ca78a7 |
|---|---|
| 50 | 50 |
| 51 AVCodecContext *avctx; | 51 AVCodecContext *avctx; |
| 52 DSPContext dsp; | 52 DSPContext dsp; |
| 53 AVFrame frame; | 53 AVFrame frame; |
| 54 | 54 |
| 55 unsigned char *buf; | 55 const unsigned char *buf; |
| 56 int size; | 56 int size; |
| 57 | 57 |
| 58 int mode_8bit; /* if it's not 8-bit, it's 16-bit */ | 58 int mode_8bit; /* if it's not 8-bit, it's 16-bit */ |
| 59 | 59 |
| 60 } Msvideo1Context; | 60 } Msvideo1Context; |
| 295 } | 295 } |
| 296 } | 296 } |
| 297 | 297 |
| 298 static int msvideo1_decode_frame(AVCodecContext *avctx, | 298 static int msvideo1_decode_frame(AVCodecContext *avctx, |
| 299 void *data, int *data_size, | 299 void *data, int *data_size, |
| 300 uint8_t *buf, int buf_size) | 300 const uint8_t *buf, int buf_size) |
| 301 { | 301 { |
| 302 Msvideo1Context *s = avctx->priv_data; | 302 Msvideo1Context *s = avctx->priv_data; |
| 303 | 303 |
| 304 s->buf = buf; | 304 s->buf = buf; |
| 305 s->size = buf_size; | 305 s->size = buf_size; |
