# HG changeset patch # User bcoudurier # Date 1257405114 0 # Node ID 4f2be9042fd695cd25cc9811850764c4714db063 # Parent b596cf9ab2486dde6aecf6918ccbb07c75c722cf warn if stream timescale is not set and set it to 1 to avoid FPE diff -r b596cf9ab248 -r 4f2be9042fd6 mov.c --- a/mov.c Thu Nov 05 02:04:21 2009 +0000 +++ b/mov.c Thu Nov 05 07:11:54 2009 +0000 @@ -1572,8 +1572,12 @@ 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);