Commit 7ebf1b4a authored by Luca Barbato's avatar Luca Barbato

avconv: Simplify poll_filters() return value check

Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent 2080bea4
...@@ -2556,16 +2556,12 @@ static int transcode(void) ...@@ -2556,16 +2556,12 @@ static int transcode(void)
} }
ret = poll_filters(); ret = poll_filters();
if (ret < 0) { if (ret < 0 && (ret != AVERROR_EOF || ret != AVERROR(EAGAIN))) {
if (ret == AVERROR_EOF || ret == AVERROR(EAGAIN)) { char errbuf[128];
continue; av_strerror(ret, errbuf, sizeof(errbuf));
} else {
char errbuf[128];
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 */
......
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