提交 fedb1eca 编写于 作者: B Baptiste Coudurier

check that duration is set to avoid fpe

Originally committed as revision 20457 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 507330b9
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册