From 0f12d79a88fcd08789fe826e40ea7d1324896b18 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 22 Sep 2021 22:17:53 +0200 Subject: [PATCH] avformat/movenchint: Simplify writing padding Reviewed-by: Paul B Mahol Signed-off-by: Andreas Rheinhardt --- libavformat/movenchint.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/movenchint.c b/libavformat/movenchint.c index 47276091f3..35212f2c5d 100644 --- a/libavformat/movenchint.c +++ b/libavformat/movenchint.c @@ -260,8 +260,7 @@ static void output_immediate(const uint8_t *data, int size, data += len; size -= len; - for (; len < 14; len++) - avio_w8(out, 0); + ffio_fill(out, 0, 14 - len); (*entries)++; }