1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-03 14:32:16 +02:00

avformat/movenc: Avoid loop for writing array

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2024-05-02 23:28:17 +02:00
parent 601873263e
commit 2c77dc5aad

View File

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