aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg_opt.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-12-19 22:55:05 +0100
committerClément Bœsch <ubitux@gmail.com>2012-12-19 22:57:35 +0100
commitcb0881c7948aaa2c0c1be85f6659d84f13c41fca (patch)
treec9077a14e796ba1e2607ef35aef93ec10b91155b /ffmpeg_opt.c
parent61bc3d80e9d819a08111476d9301445aec7d9fff (diff)
downloadffmpeg-cb0881c7948aaa2c0c1be85f6659d84f13c41fca.tar.gz
ffmpeg: use GROW_ARRAY in opt_map_channel.
Diffstat (limited to 'ffmpeg_opt.c')
-rw-r--r--ffmpeg_opt.c4
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 */