avformat/movenc: Avoid loop for writing array

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
release/7.1
Andreas Rheinhardt 12 months ago
parent 601873263e
commit 2c77dc5aad
  1. 3
      libavformat/movenc.c

@ -1244,8 +1244,7 @@ static int mov_write_chnl_tag(AVFormatContext *s, AVIOContext *pb, MOVTrack *tra
if (config) { if (config) {
avio_wb64(pb, 0); avio_wb64(pb, 0);
} else { } else {
for (int i = 0; i < layout->nb_channels; i++) avio_write(pb, speaker_pos, layout->nb_channels);
avio_w8(pb, speaker_pos[i]);
av_freep(&speaker_pos); av_freep(&speaker_pos);
} }

Loading…
Cancel
Save