This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
check that duration is set to avoid fpe
Originally committed as revision 20457 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Baptiste Coudurier
16 years ago
parent
507330b9d3
commit
fedb1eca07
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
libavformat/mov.c
+ 2
- 1
libavformat/mov.c
View File
@@ -1500,7 +1500,8 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
}
}
}
st->codec->bit_rate = stream_size*8*sc->time_scale/st->duration;
if (st->duration > 0)
st->codec->bit_rate = stream_size*8*sc->time_scale/st->duration;
} else {
for (i = 0; i < sc->chunk_count; i++) {
unsigned chunk_samples;
Write
Preview
Loading…
Cancel
Save