Commit 21b499b2 authored by bcoudurier's avatar bcoudurier

warn if stream timescale is not set and set it to 1 to avoid FPE

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20456 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1dac899d
......@@ -1572,8 +1572,12 @@ static int mov_read_trak(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
return 0;
}
if (!sc->time_scale)
if (!sc->time_scale) {
av_log(c->fc, AV_LOG_WARNING, "stream %d, timescale not set\n", st->index);
sc->time_scale = c->time_scale;
if (!sc->time_scale)
sc->time_scale = 1;
}
av_set_pts_info(st, 64, 1, sc->time_scale);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment