]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/wtvdec.c
Merge commit '4f56e773fe8a554b8c2662650aaf799c2ece2721'
[ffmpeg] / libavformat / wtvdec.c
index 139d2a4f41905ab6c74c6231ed1cb7a9b3ace5d2..e423370a9b8a617ebc5d1a2a630490f81d322760 100644 (file)
@@ -200,7 +200,7 @@ static AVIOContext * wtvfile_open_sector(int first_sector, uint64_t length, int
         return NULL;
     }
 
-    if (wf->sectors[wf->nb_sectors - 1] << WTV_SECTOR_BITS > avio_tell(s->pb))
+    if ((int64_t)wf->sectors[wf->nb_sectors - 1] << WTV_SECTOR_BITS > avio_tell(s->pb))
         av_log(s, AV_LOG_WARNING, "truncated file\n");
 
     /* check length */