Skip to content
Snippets Groups Projects
Commit b372723f authored by Peter Ross's avatar Peter Ross Committed by Michael Niedermayer
Browse files

wtvenc: ensure fat tables are padded to the sector boundary

parent 41ab24ba
No related branches found
No related tags found
No related merge requests found
...@@ -532,7 +532,7 @@ static void write_fat(AVIOContext *pb, int start_sector, int nb_sectors, int shi ...@@ -532,7 +532,7 @@ static void write_fat(AVIOContext *pb, int start_sector, int nb_sectors, int shi
avio_wl32(pb, start_sector + (i << shift)); avio_wl32(pb, start_sector + (i << shift));
} }
// pad left sector pointer size // pad left sector pointer size
write_pad(pb, WTV_SECTOR_SIZE - (nb_sectors << 2)); write_pad(pb, WTV_SECTOR_SIZE - ((nb_sectors << 2) % WTV_SECTOR_SIZE));
} }
static int write_fat_sector(AVFormatContext *s, int64_t start_pos, int nb_sectors, int sector_bits, int depth) static int write_fat_sector(AVFormatContext *s, int64_t start_pos, int nb_sectors, int sector_bits, int depth)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment