comparison pnmenc.c @ 6272:ec8c482d17c1 libavcodec

some const
author michael
date Fri, 01 Feb 2008 15:34:00 +0000
parents bff60ecc02f9
children 48759bfbd073
comparison
equal deleted inserted replaced
6271:fd69759904c7 6272:ec8c482d17c1
32 return 0; 32 return 0;
33 } 33 }
34 34
35 static int pnm_decode_frame(AVCodecContext *avctx, 35 static int pnm_decode_frame(AVCodecContext *avctx,
36 void *data, int *data_size, 36 void *data, int *data_size,
37 uint8_t *buf, int buf_size) 37 const uint8_t *buf, int buf_size)
38 { 38 {
39 PNMContext * const s = avctx->priv_data; 39 PNMContext * const s = avctx->priv_data;
40 AVFrame *picture = data; 40 AVFrame *picture = data;
41 AVFrame * const p= (AVFrame*)&s->picture; 41 AVFrame * const p= (AVFrame*)&s->picture;
42 int i, n, linesize, h, upgrade = 0; 42 int i, n, linesize, h, upgrade = 0;