Mercurial > libavformat.hg
changeset 1042:d641f2cdb692 libavformat
ignore wrong negative cts values created by quicktime
author | bcoudurier |
---|---|
date | Mon, 27 Mar 2006 16:19:51 +0000 |
parents | ae2ea8f5a07f |
children | 09a392aa8b5a |
files | mov.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mov.c Mon Mar 27 10:36:22 2006 +0000 +++ b/mov.c Mon Mar 27 16:19:51 2006 +0000 @@ -1339,6 +1339,12 @@ int count =get_be32(pb); int duration =get_be32(pb); + if (duration < 0) { + av_log(c->fc, AV_LOG_ERROR, "negative ctts, ignoring\n"); + sc->ctts_count = 0; + url_fskip(pb, 8 * (entries - i - 1)); + break; + } sc->ctts_data[i].count = count; sc->ctts_data[i].duration= duration;