Commit 4440c8e9 authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '7ebf1b4a'

* commit '7ebf1b4a':
  avconv: Simplify poll_filters() return value check
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents c1a3683f 7ebf1b4a
...@@ -4126,17 +4126,13 @@ static int transcode(void) ...@@ -4126,17 +4126,13 @@ static int transcode(void)
} }
ret = transcode_step(); ret = transcode_step();
if (ret < 0) { if (ret < 0 && (ret != AVERROR_EOF && ret != AVERROR(EAGAIN))) {
if (ret == AVERROR_EOF || ret == AVERROR(EAGAIN)) {
continue;
} else {
char errbuf[128]; char errbuf[128];
av_strerror(ret, errbuf, sizeof(errbuf)); av_strerror(ret, errbuf, sizeof(errbuf));
av_log(NULL, AV_LOG_ERROR, "Error while filtering: %s\n", errbuf); av_log(NULL, AV_LOG_ERROR, "Error while filtering: %s\n", errbuf);
break; break;
} }
}
/* dump report by using the output first video and audio streams */ /* dump report by using the output first video and audio streams */
print_report(0, timer_start, cur_time); print_report(0, timer_start, cur_time);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment