[FFmpeg-cvslog] fftools/ffmpeg_opt: Simplify adding complex filtergraph
Andreas Rheinhardt
git at videolan.org
Thu Mar 3 04:59:48 EET 2022
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed Feb 23 19:41:33 2022 +0100| [88b02e58299beaad0151d76a4377e90c39944c46] | committer: Andreas Rheinhardt
fftools/ffmpeg_opt: Simplify adding complex filtergraph
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=88b02e58299beaad0151d76a4377e90c39944c46
---
fftools/ffmpeg_opt.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c
index 1202146607..50f0edd332 100644
--- a/fftools/ffmpeg_opt.c
+++ b/fftools/ffmpeg_opt.c
@@ -3275,9 +3275,8 @@ static int opt_audio_qscale(void *optctx, const char *opt, const char *arg)
static int opt_filter_complex(void *optctx, const char *opt, const char *arg)
{
- FilterGraph *fg;
- ALLOC_ARRAY_ELEM(filtergraphs, nb_filtergraphs);
- fg = filtergraphs[nb_filtergraphs - 1];
+ FilterGraph *fg = ALLOC_ARRAY_ELEM(filtergraphs, nb_filtergraphs);
+
fg->index = nb_filtergraphs - 1;
fg->graph_desc = av_strdup(arg);
if (!fg->graph_desc)
More information about the ffmpeg-cvslog
mailing list