avconv: Simplify poll_filters() return value check

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
Luca Barbato 2016-01-02 14:43:12 +01:00
parent 2080bea4a7
commit 7ebf1b4ada
1 changed files with 5 additions and 9 deletions

View File

@ -2556,16 +2556,12 @@ static int transcode(void)
}
ret = poll_filters();
if (ret < 0) {
if (ret == AVERROR_EOF || ret == AVERROR(EAGAIN)) {
continue;
} else {
char errbuf[128];
av_strerror(ret, errbuf, sizeof(errbuf));
if (ret < 0 && (ret != AVERROR_EOF || ret != AVERROR(EAGAIN))) {
char errbuf[128];
av_strerror(ret, errbuf, sizeof(errbuf));
av_log(NULL, AV_LOG_ERROR, "Error while filtering: %s\n", errbuf);
break;
}
av_log(NULL, AV_LOG_ERROR, "Error while filtering: %s\n", errbuf);
break;
}
/* dump report by using the output first video and audio streams */