From 8a645bfc31fa0c05d08e5b5a453c232c56711092 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 3 Jul 2012 11:44:46 +0200 Subject: [PATCH] avconv: propagate fatal errors from lavfi. --- avconv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/avconv.c b/avconv.c index fad0626c91..9df5bb30fc 100644 --- a/avconv.c +++ b/avconv.c @@ -1556,8 +1556,10 @@ static int poll_filters(void) else ret = av_buffersink_read(ost->filter->filter, &picref); - if (ret < 0) + if (ret == AVERROR_EOF || ret == AVERROR(EAGAIN)) break; + else if (ret < 0) + return ret; avfilter_copy_buf_props(filtered_frame, picref); if (picref->pts != AV_NOPTS_VALUE) {