mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
ffmpeg: use GROW_ARRAY in opt_map_channel.
This commit is contained in:
parent
61bc3d80e9
commit
cb0881c794
@ -312,9 +312,7 @@ static int opt_map_channel(void *optctx, const char *opt, const char *arg)
|
||||
AVStream *st;
|
||||
AudioChannelMap *m;
|
||||
|
||||
o->audio_channel_maps =
|
||||
grow_array(o->audio_channel_maps, sizeof(*o->audio_channel_maps),
|
||||
&o->nb_audio_channel_maps, o->nb_audio_channel_maps + 1);
|
||||
GROW_ARRAY(o->audio_channel_maps, o->nb_audio_channel_maps);
|
||||
m = &o->audio_channel_maps[o->nb_audio_channel_maps - 1];
|
||||
|
||||
/* muted channel syntax */
|
||||
|
Loading…
Reference in New Issue
Block a user