diff options
author | Peter Ross <pross@xvid.org> | 2011-11-06 12:14:31 +1100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-06 02:40:31 +0100 |
commit | b372723f6a60f362e7b007a4bac2fac68da90b13 (patch) | |
tree | d8b7bc2f8623f2dc130fba216bea8fc8c5fe83e5 /libavformat/wtvenc.c | |
parent | 41ab24bad8684f93c25cf5ac547fbbd713a2a491 (diff) | |
download | ffmpeg-b372723f6a60f362e7b007a4bac2fac68da90b13.tar.gz |
wtvenc: ensure fat tables are padded to the sector boundary
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/wtvenc.c')
-rw-r--r-- | libavformat/wtvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wtvenc.c b/libavformat/wtvenc.c index 887ee729f1..d1c446ccb0 100644 --- a/libavformat/wtvenc.c +++ b/libavformat/wtvenc.c @@ -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)); } // 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) |