comparison dsicinav.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 914ff70e1367
children 48759bfbd073
comparison
equal deleted inserted replaced
6217:f838213ca91b 6218:dfdff1ca78a7
193 } 193 }
194 } 194 }
195 195
196 static int cinvideo_decode_frame(AVCodecContext *avctx, 196 static int cinvideo_decode_frame(AVCodecContext *avctx,
197 void *data, int *data_size, 197 void *data, int *data_size,
198 uint8_t *buf, int buf_size) 198 const uint8_t *buf, int buf_size)
199 { 199 {
200 CinVideoContext *cin = avctx->priv_data; 200 CinVideoContext *cin = avctx->priv_data;
201 int i, y, palette_type, palette_colors_count, bitmap_frame_type, bitmap_frame_size; 201 int i, y, palette_type, palette_colors_count, bitmap_frame_type, bitmap_frame_size;
202 202
203 cin->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE; 203 cin->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
309 return 0; 309 return 0;
310 } 310 }
311 311
312 static int cinaudio_decode_frame(AVCodecContext *avctx, 312 static int cinaudio_decode_frame(AVCodecContext *avctx,
313 void *data, int *data_size, 313 void *data, int *data_size,
314 uint8_t *buf, int buf_size) 314 const uint8_t *buf, int buf_size)
315 { 315 {
316 CinAudioContext *cin = avctx->priv_data; 316 CinAudioContext *cin = avctx->priv_data;
317 uint8_t *src = buf; 317 const uint8_t *src = buf;
318 int16_t *samples = (int16_t *)data; 318 int16_t *samples = (int16_t *)data;
319 319
320 buf_size = FFMIN(buf_size, *data_size/2); 320 buf_size = FFMIN(buf_size, *data_size/2);
321 321
322 if (cin->initial_decode_frame) { 322 if (cin->initial_decode_frame) {