提交 69e7ad8d 编写于 作者: B Benjamin Larsson 提交者: Ronald S. Bultje

mov: Avoid divide by zero in edit list dts handling

Signed-off-by: NRonald S. Bultje <rsbultje@gmail.com>
上级 9a173575
......@@ -1605,7 +1605,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
if (sc->time_offset < 0)
sc->time_offset = av_rescale(sc->time_offset, sc->time_scale, mov->time_scale);
current_dts = -sc->time_offset;
if (sc->ctts_data && sc->stts_data &&
if (sc->ctts_data && sc->stts_data && sc->stts_data[0].duration &&
sc->ctts_data[0].duration / sc->stts_data[0].duration > 16) {
/* more than 16 frames delay, dts are likely wrong
this happens with files created by iMovie */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册