diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-12-20 01:55:05 +0400 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-12-20 01:57:35 +0400 |
commit | cb0881c7948aaa2c0c1be85f6659d84f13c41fca (patch) | |
tree | c9077a14e796ba1e2607ef35aef93ec10b91155b | |
parent | 61bc3d80e9d819a08111476d9301445aec7d9fff (diff) |
ffmpeg: use GROW_ARRAY in opt_map_channel.
-rw-r--r-- | ffmpeg_opt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c index de1b75cb94..2b1563612f 100644 --- a/ffmpeg_opt.c +++ b/ffmpeg_opt.c @@ -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 */ |