mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
wtvdec: warn about truncated files
This commit is contained in:
parent
801b636633
commit
8b4842c2e2
@ -200,6 +200,9 @@ 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))
|
||||
av_log(s, AV_LOG_WARNING, "truncated file\n");
|
||||
|
||||
/* check length */
|
||||
length &= 0xFFFFFFFFFFFF;
|
||||
if (length > ((int64_t)wf->nb_sectors << wf->sector_bits)) {
|
||||
|
Loading…
Reference in New Issue
Block a user