Revision c3024f9e libavformat/mov.c
libavformat/mov.c | ||
---|---|---|
1515 | 1515 |
uint64_t stream_size = 0; |
1516 | 1516 |
|
1517 | 1517 |
/* adjust first dts according to edit list */ |
1518 |
if (sc->time_offset) { |
|
1518 |
if (sc->time_offset && mov->time_scale > 0) {
|
|
1519 | 1519 |
int rescaled = sc->time_offset < 0 ? av_rescale(sc->time_offset, sc->time_scale, mov->time_scale) : sc->time_offset; |
1520 | 1520 |
current_dts = -rescaled; |
1521 | 1521 |
if (sc->ctts_data && sc->stts_data && |
... | ... | |
1750 | 1750 |
return 0; |
1751 | 1751 |
} |
1752 | 1752 |
|
1753 |
if (!sc->time_scale) {
|
|
1753 |
if (sc->time_scale <= 0) {
|
|
1754 | 1754 |
av_log(c->fc, AV_LOG_WARNING, "stream %d, timescale not set\n", st->index); |
1755 | 1755 |
sc->time_scale = c->time_scale; |
1756 |
if (!sc->time_scale)
|
|
1756 |
if (sc->time_scale <= 0)
|
|
1757 | 1757 |
sc->time_scale = 1; |
1758 | 1758 |
} |
1759 | 1759 |
|
Also available in: Unified diff