diff mbox series

[FFmpeg-devel,15/27] avformat/matroskaenc: Simplify writing qt-compatibility header

Message ID AM7PR03MB666007F0A3F16112C896212D8FA39@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 62c8b96a1362622c73f988db05f66a0ebd15211b
Headers show
Series [FFmpeg-devel,01/27] avformat/astenc: Simplify writing padding
Related show

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:28 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/matroskaenc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 039f20988a..f17665b0c1 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -785,11 +785,9 @@  static int mkv_write_codecprivate(AVFormatContext *s, AVIOContext *pb,
             if (   ff_codec_get_id(ff_codec_movvideo_tags, par->codec_tag) == par->codec_id
                 && (!par->extradata_size || ff_codec_get_id(ff_codec_movvideo_tags, AV_RL32(par->extradata + 4)) != par->codec_id)
             ) {
-                int i;
                 avio_wb32(dyn_cp, 0x5a + par->extradata_size);
                 avio_wl32(dyn_cp, par->codec_tag);
-                for(i = 0; i < 0x5a - 8; i++)
-                    avio_w8(dyn_cp, 0);
+                ffio_fill(dyn_cp, 0, 0x5a - 8);
             }
             avio_write(dyn_cp, par->extradata, par->extradata_size);
         } else {