projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe9bb61
)
lavf: move a variable declaration to the block where it's used
author
Anton Khirnov
<anton@khirnov.net>
Sun, 25 Aug 2013 09:53:34 +0000
(11:53 +0200)
committer
Anton Khirnov
<anton@khirnov.net>
Mon, 2 Sep 2013 17:28:19 +0000
(19:28 +0200)
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
89f92ea
..
eb89f43
100644
(file)
--- 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)