comparison mpegaudio.c @ 1057:bb5de8a59da8 libavcodec

* static,const,compiler warning cleanup
author kabi
date Mon, 10 Feb 2003 09:35:32 +0000
parents 19de1445beb2
children b32afefe7d33
comparison
equal deleted inserted replaced
1056:eb403f8158eb 1057:bb5de8a59da8
52 /* define it to use floats in quantization (I don't like floats !) */ 52 /* define it to use floats in quantization (I don't like floats !) */
53 //#define USE_FLOATS 53 //#define USE_FLOATS
54 54
55 #include "mpegaudiotab.h" 55 #include "mpegaudiotab.h"
56 56
57 int MPA_encode_init(AVCodecContext *avctx) 57 static int MPA_encode_init(AVCodecContext *avctx)
58 { 58 {
59 MpegAudioContext *s = avctx->priv_data; 59 MpegAudioContext *s = avctx->priv_data;
60 int freq = avctx->sample_rate; 60 int freq = avctx->sample_rate;
61 int bitrate = avctx->bit_rate; 61 int bitrate = avctx->bit_rate;
62 int channels = avctx->channels; 62 int channels = avctx->channels;
735 735
736 /* flush */ 736 /* flush */
737 flush_put_bits(p); 737 flush_put_bits(p);
738 } 738 }
739 739
740 int MPA_encode_frame(AVCodecContext *avctx, 740 static int MPA_encode_frame(AVCodecContext *avctx,
741 unsigned char *frame, int buf_size, void *data) 741 unsigned char *frame, int buf_size, void *data)
742 { 742 {
743 MpegAudioContext *s = avctx->priv_data; 743 MpegAudioContext *s = avctx->priv_data;
744 short *samples = data; 744 short *samples = data;
745 short smr[MPA_MAX_CHANNELS][SBLIMIT]; 745 short smr[MPA_MAX_CHANNELS][SBLIMIT];
746 unsigned char bit_alloc[MPA_MAX_CHANNELS][SBLIMIT]; 746 unsigned char bit_alloc[MPA_MAX_CHANNELS][SBLIMIT];