1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

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

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