Browse Source

avconv: propagate fatal errors from lavfi.

tags/n1.0
Anton Khirnov 13 years ago
parent
commit
8a645bfc31
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      avconv.c

+ 3
- 1
avconv.c 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) {


Loading…
Cancel
Save