diff options
author | Soft Works <softworkz@hotmail.com> | 2021-10-10 17:01:43 +0000 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2021-11-13 19:55:32 +0100 |
commit | 0a99c8322a469ad54cce3c49bd9d1681f3ef6388 (patch) | |
tree | e8340312b83350f35b37b2d2bee699cd6edbe595 /fftools/ffmpeg.c | |
parent | 89ba6e9a04d2852d5d042dfd2afde727d2f39bea (diff) | |
download | ffmpeg-0a99c8322a469ad54cce3c49bd9d1681f3ef6388.tar.gz |
fftools/ffmpeg: Remove redundant loop
Signed-off-by: softworkz <softworkz@hotmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r-- | fftools/ffmpeg.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 9d4f9d7a2b..e205945e63 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -2178,7 +2178,7 @@ static int ifilter_send_frame(InputFilter *ifilter, AVFrame *frame) { FilterGraph *fg = ifilter->graph; AVFrameSideData *sd; - int need_reinit, ret, i; + int need_reinit, ret; /* determine if the parameters for this input changed */ need_reinit = ifilter->format != frame->format; @@ -2216,7 +2216,6 @@ static int ifilter_send_frame(InputFilter *ifilter, AVFrame *frame) /* (re)init the graph if possible, otherwise buffer the frame and return */ if (need_reinit || !fg->graph) { - for (i = 0; i < fg->nb_inputs; i++) { if (!ifilter_has_all_input_formats(fg)) { AVFrame *tmp = av_frame_clone(frame); if (!tmp) @@ -2233,7 +2232,6 @@ static int ifilter_send_frame(InputFilter *ifilter, AVFrame *frame) av_fifo_generic_write(ifilter->frame_queue, &tmp, sizeof(tmp), NULL); return 0; } - } ret = reap_filters(1); if (ret < 0 && ret != AVERROR_EOF) { |