[SCM] libav/experimental: ignore wrong negative cts values created by quicktime
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 15:47:14 UTC 2013
The following commit has been merged in the experimental branch:
commit b0519015f055bfce2912d5304473e12e9308d649
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date: Mon Mar 27 16:19:51 2006 +0000
ignore wrong negative cts values created by quicktime
Originally committed as revision 5229 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 6d6d3d5..6863f39 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1339,6 +1339,12 @@ static int mov_read_ctts(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list