mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
check that duration is set to avoid fpe
Originally committed as revision 20457 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
507330b9d3
commit
fedb1eca07
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user