avfilter/vaf_spectrumsynth: check return code
authorPaul B Mahol <onemda@gmail.com>
Tue, 16 Aug 2016 14:01:35 +0000 (16:01 +0200)
committerPaul B Mahol <onemda@gmail.com>
Tue, 16 Aug 2016 14:01:35 +0000 (16:01 +0200)
libavfilter/vaf_spectrumsynth.c

index ee394b4..ed191a3 100644 (file)
@@ -419,6 +419,8 @@ static int try_push_frame(AVFilterContext *ctx, int x)
                 }
 
                 ret = ff_filter_frame(outlink, out);
+                if (ret < 0)
+                    return ret;
             }
         }
     }