diff mbox series

[FFmpeg-devel,27/27] avformat/mxfenc: Simplfy writing padding

Message ID AM7PR03MB6660220C3ED3D03D80C000888FA39@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit c3222931aba47b313a5b5b9f3796f08433c5f3b9
Headers show
Series [FFmpeg-devel,01/27] avformat/astenc: Simplify writing padding | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 23, 2021, 3:29 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/mxfenc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index f37606ed89..56facbe4b7 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -965,7 +965,6 @@  static void mxf_write_structural_component(AVFormatContext *s, AVStream *st, MXF
 {
     MXFContext *mxf = s->priv_data;
     AVIOContext *pb = s->pb;
-    int i;
 
     mxf_write_metadata_key(pb, 0x011100);
     PRINT_KEY(s, "sturctural component key", pb->buf_ptr - 16);
@@ -985,8 +984,7 @@  static void mxf_write_structural_component(AVFormatContext *s, AVStream *st, MXF
     // write source package uid, end of the reference
     mxf_write_local_tag(s, 32, 0x1101);
     if (!package->ref) {
-        for (i = 0; i < 4; i++)
-            avio_wb64(pb, 0);
+        ffio_fill(pb, 0, 32);
     } else
         mxf_write_umid(s, package->ref->instance);