comparison mpegaudiodec.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 c7a61f83de73
children 8e63d869a904
comparison
equal deleted inserted replaced
6217:f838213ca91b 6218:dfdff1ca78a7
2365 return nb_frames * 32 * sizeof(OUT_INT) * s->nb_channels; 2365 return nb_frames * 32 * sizeof(OUT_INT) * s->nb_channels;
2366 } 2366 }
2367 2367
2368 static int decode_frame(AVCodecContext * avctx, 2368 static int decode_frame(AVCodecContext * avctx,
2369 void *data, int *data_size, 2369 void *data, int *data_size,
2370 uint8_t * buf, int buf_size) 2370 const uint8_t * buf, int buf_size)
2371 { 2371 {
2372 MPADecodeContext *s = avctx->priv_data; 2372 MPADecodeContext *s = avctx->priv_data;
2373 uint32_t header; 2373 uint32_t header;
2374 int out_size; 2374 int out_size;
2375 OUT_INT *out_samples = data; 2375 OUT_INT *out_samples = data;
2436 } 2436 }
2437 2437
2438 #ifdef CONFIG_MP3ADU_DECODER 2438 #ifdef CONFIG_MP3ADU_DECODER
2439 static int decode_frame_adu(AVCodecContext * avctx, 2439 static int decode_frame_adu(AVCodecContext * avctx,
2440 void *data, int *data_size, 2440 void *data, int *data_size,
2441 uint8_t * buf, int buf_size) 2441 const uint8_t * buf, int buf_size)
2442 { 2442 {
2443 MPADecodeContext *s = avctx->priv_data; 2443 MPADecodeContext *s = avctx->priv_data;
2444 uint32_t header; 2444 uint32_t header;
2445 int len, out_size; 2445 int len, out_size;
2446 OUT_INT *out_samples = data; 2446 OUT_INT *out_samples = data;
2562 } 2562 }
2563 2563
2564 2564
2565 static int decode_frame_mp3on4(AVCodecContext * avctx, 2565 static int decode_frame_mp3on4(AVCodecContext * avctx,
2566 void *data, int *data_size, 2566 void *data, int *data_size,
2567 uint8_t * buf, int buf_size) 2567 const uint8_t * buf, int buf_size)
2568 { 2568 {
2569 MP3On4DecodeContext *s = avctx->priv_data; 2569 MP3On4DecodeContext *s = avctx->priv_data;
2570 MPADecodeContext *m; 2570 MPADecodeContext *m;
2571 int len, out_size = 0; 2571 int len, out_size = 0;
2572 uint32_t header; 2572 uint32_t header;
2573 OUT_INT *out_samples = data; 2573 OUT_INT *out_samples = data;
2574 OUT_INT decoded_buf[MPA_FRAME_SIZE * MPA_MAX_CHANNELS]; 2574 OUT_INT decoded_buf[MPA_FRAME_SIZE * MPA_MAX_CHANNELS];
2575 OUT_INT *outptr, *bp; 2575 OUT_INT *outptr, *bp;
2576 int fsize; 2576 int fsize;
2577 unsigned char *start2 = buf, *start; 2577 const unsigned char *start2 = buf, *start;
2578 int fr, i, j, n; 2578 int fr, i, j, n;
2579 int off = avctx->channels; 2579 int off = avctx->channels;
2580 int *coff = chan_offset[s->chan_cfg]; 2580 int *coff = chan_offset[s->chan_cfg];
2581 2581
2582 len = buf_size; 2582 len = buf_size;