aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-02 23:28:17 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-04 16:30:22 +0200
commit2c77dc5aad2d3dde5fbe35e233e7a903584ff473 (patch)
tree4b06bd112fe7875f9966b8aacf3c3ed60a902c8d /libavformat/movenc.c
parent601873263e618e2dc2b615ae95e605575171ee30 (diff)
downloadffmpeg-2c77dc5aad2d3dde5fbe35e233e7a903584ff473.tar.gz
avformat/movenc: Avoid loop for writing array
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index b4c1db2774..f907f67752 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -1244,8 +1244,7 @@ static int mov_write_chnl_tag(AVFormatContext *s, AVIOContext *pb, MOVTrack *tra
if (config) {
avio_wb64(pb, 0);
} else {
- for (int i = 0; i < layout->nb_channels; i++)
- avio_w8(pb, speaker_pos[i]);
+ avio_write(pb, speaker_pos, layout->nb_channels);
av_freep(&speaker_pos);
}