From fab694dd3931b1c0bc3c598c3f88b1902c14a303 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 25 Aug 2013 11:53:34 +0200 Subject: [PATCH] lavf: move a variable declaration to the block where it's used --- libavformat/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 89f92eab6a..eb89f43636 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1749,12 +1749,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; + int i; 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)