Browse Source

Make av_get_bit_rate() static and remove av_, the function is only used

inside libavcodec/utils.c.

Originally committed as revision 22117 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Carl Eugen Hoyos 16 years ago
parent
commit
406aa93fd0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/utils.c

+ 2
- 2
libavcodec/utils.c View File

@@ -769,7 +769,7 @@ AVCodec *avcodec_find_decoder_by_name(const char *name)
return NULL;
}

int av_get_bit_rate(AVCodecContext *ctx)
static int get_bit_rate(AVCodecContext *ctx)
{
int bit_rate;
int bits_per_sample;
@@ -907,7 +907,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
snprintf(buf + strlen(buf), buf_size - strlen(buf),
", pass 2");
}
bitrate = av_get_bit_rate(enc);
bitrate = get_bit_rate(enc);
if (bitrate != 0) {
snprintf(buf + strlen(buf), buf_size - strlen(buf),
", %d kb/s", bitrate / 1000);


Loading…
Cancel
Save