comparison ptx.c @ 6246:ce0378d4c06c libavcodec

const
author michael
date Fri, 01 Feb 2008 14:03:47 +0000
parents 4d43f2e3aaa5
children 48759bfbd073
comparison
equal deleted inserted replaced
6245:817e302aae08 6246:ce0378d4c06c
33 33
34 return 0; 34 return 0;
35 } 35 }
36 36
37 static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size, 37 static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
38 uint8_t *buf, int buf_size) { 38 const uint8_t *buf, int buf_size) {
39 PTXContext * const s = avctx->priv_data; 39 PTXContext * const s = avctx->priv_data;
40 AVFrame *picture = data; 40 AVFrame *picture = data;
41 AVFrame * const p = &s->picture; 41 AVFrame * const p = &s->picture;
42 unsigned int offset, w, h, y, stride, bytes_per_pixel; 42 unsigned int offset, w, h, y, stride, bytes_per_pixel;
43 uint8_t *ptr; 43 uint8_t *ptr;