diff --git a/libavformat/utils.c b/libavformat/utils.c index 16741d8919..5998a3fa72 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2214,12 +2214,12 @@ static void fill_all_stream_timings(AVFormatContext *ic) static void estimate_timings_from_bit_rate(AVFormatContext *ic) { int64_t filesize, duration; - int bit_rate, i, show_warning = 0; + int i, show_warning = 0; AVStream *st; /* if bit_rate is already set, we believe it */ if (ic->bit_rate <= 0) { - bit_rate = 0; + int bit_rate = 0; for(i=0;inb_streams;i++) { st = ic->streams[i]; if (st->codec->bit_rate > 0)