avconv: propagate fatal errors from lavfi.

This commit is contained in:
Anton Khirnov 2012-07-03 11:44:46 +02:00
parent cd99146253
commit 8a645bfc31
1 changed files with 3 additions and 1 deletions

View File

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