]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mov.c
avformat/file: Fix copy and paste error
[ffmpeg] / libavformat / mov.c
index 45367d39f736544d9156844489a1ddb53704d01c..764a7b141113a99b6235db40c47ba186e28cc60e 100644 (file)
@@ -2506,7 +2506,7 @@ static int mov_read_ctts(MOVContext *c, AVIOContext *pb, MOVAtom atom)
         av_log(c->fc, AV_LOG_TRACE, "count=%d, duration=%d\n",
                 count, duration);
 
-        if (FFABS(duration) > (1<<28) && i+2<entries) {
+        if (FFNABS(duration) < -(1<<28) && i+2<entries) {
             av_log(c->fc, AV_LOG_WARNING, "CTTS invalid\n");
             av_freep(&sc->ctts_data);
             sc->ctts_count = 0;