diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-08-25 11:53:34 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-09-02 19:28:19 +0200 |
commit | fab694dd3931b1c0bc3c598c3f88b1902c14a303 (patch) | |
tree | 72c0344d85a53f3e85c5e3db79cc3c6bc3c8fe16 /libavformat/utils.c | |
parent | fe9bb61f9a16be19ad91875632c39e44b7a99a8a (diff) | |
download | ffmpeg-fab694dd3931b1c0bc3c598c3f88b1902c14a303.tar.gz |
lavf: move a variable declaration to the block where it's used
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 4 |
1 files 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;i<ic->nb_streams;i++) { st = ic->streams[i]; if (st->codec->bit_rate > 0) |