summaryrefslogtreecommitdiff
path: root/libavformat/movenchint.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-22 22:17:53 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-24 00:13:49 +0200
commit0f12d79a88fcd08789fe826e40ea7d1324896b18 (patch)
treeaeebf61b65f4d6667b5ce472bf2121e3e96ad09e /libavformat/movenchint.c
parentbb98212930721f223fb77f25c3c9e016640f9c9b (diff)
avformat/movenchint: Simplify writing padding
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/movenchint.c')
-rw-r--r--libavformat/movenchint.c3
1 files changed, 1 insertions, 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)++;
}