comparison utils.c @ 11323:7089198d1d10 libavcodec

Make av_get_bit_rate() static and remove av_, the function is only used inside libavcodec/utils.c.
author cehoyos
date Sun, 28 Feb 2010 19:05:51 +0000
parents c4e86bcb2fee
children 8a4984c5cacc
comparison
equal deleted inserted replaced
11322:c4e86bcb2fee 11323:7089198d1d10
767 p = p->next; 767 p = p->next;
768 } 768 }
769 return NULL; 769 return NULL;
770 } 770 }
771 771
772 int av_get_bit_rate(AVCodecContext *ctx) 772 static int get_bit_rate(AVCodecContext *ctx)
773 { 773 {
774 int bit_rate; 774 int bit_rate;
775 int bits_per_sample; 775 int bits_per_sample;
776 776
777 switch(ctx->codec_type) { 777 switch(ctx->codec_type) {
905 ", pass 1"); 905 ", pass 1");
906 if (enc->flags & CODEC_FLAG_PASS2) 906 if (enc->flags & CODEC_FLAG_PASS2)
907 snprintf(buf + strlen(buf), buf_size - strlen(buf), 907 snprintf(buf + strlen(buf), buf_size - strlen(buf),
908 ", pass 2"); 908 ", pass 2");
909 } 909 }
910 bitrate = av_get_bit_rate(enc); 910 bitrate = get_bit_rate(enc);
911 if (bitrate != 0) { 911 if (bitrate != 0) {
912 snprintf(buf + strlen(buf), buf_size - strlen(buf), 912 snprintf(buf + strlen(buf), buf_size - strlen(buf),
913 ", %d kb/s", bitrate / 1000); 913 ", %d kb/s", bitrate / 1000);
914 } 914 }
915 } 915 }