Commit cb0881c7 authored by Clément Bœsch's avatar Clément Bœsch

ffmpeg: use GROW_ARRAY in opt_map_channel.

parent 61bc3d80
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment