Mercurial > libavcodec.hg
comparison ptx.c @ 6075:4d43f2e3aaa5 libavcodec
remove useless cast
author | ivo |
---|---|
date | Thu, 27 Dec 2007 11:49:28 +0000 |
parents | 20d8a8f0fd30 |
children | ce0378d4c06c |
comparison
equal
deleted
inserted
replaced
6074:036d93ae3095 | 6075:4d43f2e3aaa5 |
---|---|
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 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 = (AVFrame *)&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; |
44 | 44 |
45 offset = AV_RL16(buf); | 45 offset = AV_RL16(buf); |
46 w = AV_RL16(buf+8); | 46 w = AV_RL16(buf+8); |