ffmpeg: use GROW_ARRAY in opt_map_channel.
authorClément Bœsch <ubitux@gmail.com>
Wed, 19 Dec 2012 21:55:05 +0000 (22:55 +0100)
committerClément Bœsch <ubitux@gmail.com>
Wed, 19 Dec 2012 21:57:35 +0000 (22:57 +0100)
ffmpeg_opt.c

index de1b75c..2b15636 100644 (file)
@@ -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 */