X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fwtvenc.c;h=d1c446ccb0d707754c895abe8a763938a9420d3d;hb=b2bdca1b4a739992779f6641fcc122cffb240eb6;hp=887ee729f1b179a6933928a08142ebd7ae5ce356;hpb=d8cab5c26b0987f139830937e1f30b2a10822680;p=ffmpeg diff --git a/libavformat/wtvenc.c b/libavformat/wtvenc.c index 887ee729f1b..d1c446ccb0d 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)