diff mbox series

[FFmpeg-devel,v2,1/2] fftools/ffmpeg: Remove redundant loop

Message ID MN2PR04MB59812B7B95BC9AC7707993AFBAB49@MN2PR04MB5981.namprd04.prod.outlook.com
State New
Headers show
Series [FFmpeg-devel,v2,1/2] fftools/ffmpeg: Remove redundant loop
Related show

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Soft Works Oct. 10, 2021, 5:01 p.m. UTC
Signed-off-by: softworkz <softworkz@hotmail.com>
---
v2: Replaced tabs

 fftools/ffmpeg.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

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) {