avconv: propagate fatal errors from lavfi.
This commit is contained in:
parent
cd99146253
commit
8a645bfc31
4
avconv.c
4
avconv.c
@ -1556,8 +1556,10 @@ static int poll_filters(void)
|
|||||||
else
|
else
|
||||||
ret = av_buffersink_read(ost->filter->filter, &picref);
|
ret = av_buffersink_read(ost->filter->filter, &picref);
|
||||||
|
|
||||||
if (ret < 0)
|
if (ret == AVERROR_EOF || ret == AVERROR(EAGAIN))
|
||||||
break;
|
break;
|
||||||
|
else if (ret < 0)
|
||||||
|
return ret;
|
||||||
|
|
||||||
avfilter_copy_buf_props(filtered_frame, picref);
|
avfilter_copy_buf_props(filtered_frame, picref);
|
||||||
if (picref->pts != AV_NOPTS_VALUE) {
|
if (picref->pts != AV_NOPTS_VALUE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user