Mercurial > libavcodec.hg
comparison vcr1.c @ 6289:d1cf4f790f31 libavcodec
const
author | michael |
---|---|
date | Fri, 01 Feb 2008 16:03:03 +0000 |
parents | c8c591fe26f8 |
children | c32be43b52b2 |
comparison
equal
deleted
inserted
replaced
6288:911d4939e3c8 | 6289:d1cf4f790f31 |
---|---|
37 int offset[4]; | 37 int offset[4]; |
38 } VCR1Context; | 38 } VCR1Context; |
39 | 39 |
40 static int decode_frame(AVCodecContext *avctx, | 40 static int decode_frame(AVCodecContext *avctx, |
41 void *data, int *data_size, | 41 void *data, int *data_size, |
42 uint8_t *buf, int buf_size) | 42 const uint8_t *buf, int buf_size) |
43 { | 43 { |
44 VCR1Context * const a = avctx->priv_data; | 44 VCR1Context * const a = avctx->priv_data; |
45 AVFrame *picture = data; | 45 AVFrame *picture = data; |
46 AVFrame * const p= (AVFrame*)&a->picture; | 46 AVFrame * const p= (AVFrame*)&a->picture; |
47 uint8_t *bytestream= buf; | 47 const uint8_t *bytestream= buf; |
48 int i, x, y; | 48 int i, x, y; |
49 | 49 |
50 if(p->data[0]) | 50 if(p->data[0]) |
51 avctx->release_buffer(avctx, p); | 51 avctx->release_buffer(avctx, p); |
52 | 52 |