Browse Source

wtvdec: fix integer overflow

Fixes CID968583
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.2
Michael Niedermayer 12 years ago
parent
commit
3317414fc1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/wtvdec.c

+ 1
- 1
libavformat/wtvdec.c View 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 */


Loading…
Cancel
Save