[FFmpeg-cvslog] ffmpeg: use GROW_ARRAY in opt_map_channel.
Clément Bœsch
git at videolan.org
Wed Dec 19 23:17:58 CET 2012
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Wed Dec 19 22:55:05 2012 +0100| [cb0881c7948aaa2c0c1be85f6659d84f13c41fca] | committer: Clément Bœsch
ffmpeg: use GROW_ARRAY in opt_map_channel.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cb0881c7948aaa2c0c1be85f6659d84f13c41fca
---
ffmpeg_opt.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index de1b75c..2b15636 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 */
More information about the ffmpeg-cvslog
mailing list