Mercurial > libavcodec.hg
comparison mp3lameaudio.c @ 4170:f97a2081b5b1 libavcodec
make some symbols static
author | mru |
---|---|
date | Sat, 11 Nov 2006 20:54:48 +0000 |
parents | 85438e10d72d |
children | bff60ecc02f9 |
comparison
equal
deleted
inserted
replaced
4169:8d67ae8320dc | 4170:f97a2081b5b1 |
---|---|
133 //av_log(NULL, AV_LOG_DEBUG, "sr:%d br:%d spf:%d l:%d m:%d\n", *sampleRate, bitRate, *samplesPerFrame, layerID, mode); | 133 //av_log(NULL, AV_LOG_DEBUG, "sr:%d br:%d spf:%d l:%d m:%d\n", *sampleRate, bitRate, *samplesPerFrame, layerID, mode); |
134 | 134 |
135 return *samplesPerFrame * bitRate / (bitsPerSlot * *sampleRate) + isPadded; | 135 return *samplesPerFrame * bitRate / (bitsPerSlot * *sampleRate) + isPadded; |
136 } | 136 } |
137 | 137 |
138 int MP3lame_encode_frame(AVCodecContext *avctx, | 138 static int MP3lame_encode_frame(AVCodecContext *avctx, |
139 unsigned char *frame, int buf_size, void *data) | 139 unsigned char *frame, int buf_size, void *data) |
140 { | 140 { |
141 Mp3AudioContext *s = avctx->priv_data; | 141 Mp3AudioContext *s = avctx->priv_data; |
142 int len; | 142 int len; |
143 int lame_result; | 143 int lame_result; |
144 | 144 |
196 return len; | 196 return len; |
197 }else | 197 }else |
198 return 0; | 198 return 0; |
199 } | 199 } |
200 | 200 |
201 int MP3lame_encode_close(AVCodecContext *avctx) | 201 static int MP3lame_encode_close(AVCodecContext *avctx) |
202 { | 202 { |
203 Mp3AudioContext *s = avctx->priv_data; | 203 Mp3AudioContext *s = avctx->priv_data; |
204 | 204 |
205 av_freep(&avctx->coded_frame); | 205 av_freep(&avctx->coded_frame); |
206 | 206 |