[FFmpeg-cvslog] avformat/movenchint: Simplify writing padding

Andreas Rheinhardt git at videolan.org
Fri Sep 24 01:24:35 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed Sep 22 22:17:53 2021 +0200| [0f12d79a88fcd08789fe826e40ea7d1324896b18] | committer: Andreas Rheinhardt

avformat/movenchint: Simplify writing padding

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0f12d79a88fcd08789fe826e40ea7d1324896b18
---

 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)++;
     }



More information about the ffmpeg-cvslog mailing list