diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-22 22:17:53 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-24 00:13:49 +0200 |
commit | 0f12d79a88fcd08789fe826e40ea7d1324896b18 (patch) | |
tree | aeebf61b65f4d6667b5ce472bf2121e3e96ad09e /libavformat/movenchint.c | |
parent | bb98212930721f223fb77f25c3c9e016640f9c9b (diff) | |
download | ffmpeg-0f12d79a88fcd08789fe826e40ea7d1324896b18.tar.gz |
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.c | 3 |
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)++; } |