[FFmpeg-cvslog] avfilter/af_afir: return early when giving video frame
Paul B Mahol
git at videolan.org
Thu Nov 8 14:07:38 EET 2018
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Nov 8 11:14:56 2018 +0100| [8dc5eb43b070efe152be8971ae58512ea23ecc02] | committer: Paul B Mahol
avfilter/af_afir: return early when giving video frame
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8dc5eb43b070efe152be8971ae58512ea23ecc02
---
libavfilter/af_afir.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/libavfilter/af_afir.c b/libavfilter/af_afir.c
index 7fa0b1343b..69516ccc52 100644
--- a/libavfilter/af_afir.c
+++ b/libavfilter/af_afir.c
@@ -512,9 +512,7 @@ static int activate(AVFilterContext *ctx)
if (s->response && s->have_coeffs) {
if (ff_outlink_frame_wanted(ctx->outputs[1])) {
s->video->pts = s->pts;
- ret = ff_filter_frame(ctx->outputs[1], av_frame_clone(s->video));
- if (ret < 0)
- return ret;
+ return ff_filter_frame(ctx->outputs[1], av_frame_clone(s->video));
}
}
More information about the ffmpeg-cvslog
mailing list